Skip to content

Commit

Permalink
config#ParseFlags(): Ignore non-critical errors explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 23, 2024
1 parent b08ef86 commit d70e13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func ParseFlags(v any) error {
if _, err := parser.Parse(); err != nil {
var flagErr *flags.Error
if errors.As(err, &flagErr) && errors.Is(flagErr.Type, flags.ErrHelp) {
fmt.Fprintln(os.Stdout, flagErr)
_, _ = fmt.Fprintln(os.Stdout, flagErr)
os.Exit(0)
}

Expand Down

0 comments on commit d70e13d

Please sign in to comment.