Skip to content

Commit

Permalink
Update comment on const ExitOnError
Browse files Browse the repository at this point in the history
  • Loading branch information
sding3 committed Apr 2, 2020
1 parent cf29867 commit 6f44a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ type ErrorHandling int
// These constants cause FlagSet.Parse to behave as described if the parse fails.
const (
ContinueOnError ErrorHandling = iota // Return a descriptive error.
ExitOnError // Call os.Exit(2).
ExitOnError // Call os.Exit(2) or for -h/-help Exit(0).
PanicOnError // Call panic with a descriptive error.
)

Expand Down

0 comments on commit 6f44a91

Please sign in to comment.