Revert "init: Honor config-dir flag when it is passed as global or local flag (#3337)"

This reverts commit e2ef95af7d.

This is reverted since the previous patch caused crashes.
This commit is contained in:
Harshavardhana
2016-11-23 17:27:42 -08:00
parent 12c1abed98
commit dd74e5a809
5 changed files with 68 additions and 89 deletions
+4 -4
View File
@@ -43,10 +43,10 @@ func mainVersion(ctx *cli.Context) {
if len(ctx.Args()) != 0 {
cli.ShowCommandHelpAndExit(ctx, "version", 1)
}
setGlobalsFromContext(ctx)
checkUpdate()
// Set global quiet flag.
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
return
}
console.Println("Version: " + Version)
console.Println("Release-Tag: " + ReleaseTag)