Add exit code 1 on invalid usage, fixes #500 (#501)

This commit is contained in:
Paweł Kowalczyk authored and GitHub committed 2021-01-10 09:34:31 -05:00
1 parent 1c6f2252b8
commit 8be91eea5d
1 file changed
+1 -1
+1 -1
View File
@@ -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 {