Skip to content

Commit

Permalink
Add exit code 1 on invalid usage, fixes #500 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalczykp authored Jan 10, 2021
1 parent 1c6f225 commit 8be91ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ParseOptions() (Options, error) {
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type != flags.ErrHelp {
parser.WriteHelp(os.Stdout)
}
os.Exit(0)
os.Exit(1)
}

if opts.Version {
Expand Down

0 comments on commit 8be91ee

Please sign in to comment.