Skip to content

Commit

Permalink
feat: unified usage when invalid options
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 27, 2020
1 parent ddc712a commit dde4ece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/whatchanged/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func run() error {
flag.BoolVar(&showHelp, "help", false, "Print help information")
flag.BoolVar(&showVersion, "version", false, "Print version information")

flag.Usage = printHelp

flag.Parse()

if showHelp {
Expand Down

0 comments on commit dde4ece

Please sign in to comment.