Skip to content

Commit

Permalink
Merge pull request #415 from classmarkets/version-flag
Browse files Browse the repository at this point in the history
Actually respect -version option
  • Loading branch information
magiconair authored Dec 21, 2017
2 parents 5c5c389 + 88381e2 commit dad6e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func parse(args []string) (cmdline []string, path string, version bool, err erro

switch {
// version flag
case arg == "-v" || arg == "--version":
case arg == "-v" || arg == "-version" || arg == "--version":
return nil, "", true, nil

// config file without '='
Expand Down

0 comments on commit dad6e10

Please sign in to comment.