Skip to content

Commit d099842

Browse files
committed
Return success on git-sizer --help
If the user explicitly asked for help, and that's what they got, then everybody's happy. Fixes: #71
1 parent 951a51b commit d099842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-sizer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ func mainImplementation() error {
116116

117117
err = flags.Parse(os.Args[1:])
118118
if err != nil {
119+
if err == pflag.ErrHelp {
120+
return nil
121+
}
119122
return err
120123
}
121124

0 commit comments

Comments
 (0)