Skip to content

Commit b5b2276

Browse files
committed
help flag
1 parent 0bb8f24 commit b5b2276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ func main() {
3030
}
3131
}()
3232

33-
_, err := flags.ParseArgs(&opts, os.Args)
33+
p := flags.NewParser(&opts, flags.HelpFlag)
34+
_, err := p.ParseArgs(os.Args)
3435
if err != nil {
3536
panic(err)
3637
}

0 commit comments

Comments
 (0)