mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
init: Honor config-dir flag when it is passed as global or local flag (#3337)
setGlobalsFromContext() is added to sets global variable after parsing command line arguments.
This commit is contained in:
committed by
Harshavardhana
parent
d711ff454e
commit
e2ef95af7d
+3
-2
@@ -265,8 +265,9 @@ func getReleaseUpdate(updateURL string, duration time.Duration) (updateMsg updat
|
||||
|
||||
// main entry point for update command.
|
||||
func mainUpdate(ctx *cli.Context) {
|
||||
// Set global quiet flag.
|
||||
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
|
||||
|
||||
setGlobalsFromContext(ctx)
|
||||
if globalQuiet {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user