Skip to content

Commit

Permalink
Actually respect -version option
Browse files Browse the repository at this point in the history
Accept -version flag, as shown in the usage message. Do this in addition
to --version, to not break compatibility.
  • Loading branch information
pschultz committed Dec 21, 2017
1 parent 5c5c389 commit 88381e2
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 88381e2

Please sign in to comment.