mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +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
@@ -44,6 +44,10 @@ func mainVersion(ctx *cli.Context) {
|
||||
cli.ShowCommandHelpAndExit(ctx, "version", 1)
|
||||
}
|
||||
|
||||
setGlobalsFromContext(ctx)
|
||||
|
||||
checkUpdate()
|
||||
|
||||
console.Println("Version: " + Version)
|
||||
console.Println("Release-Tag: " + ReleaseTag)
|
||||
console.Println("Commit-ID: " + CommitID)
|
||||
|
||||
Reference in New Issue
Block a user