Skip to content

Commit

Permalink
fix(cmd): Change flag parse error handling
Browse files Browse the repository at this point in the history
Allows for tests to work w/o calling "exit 1".
  • Loading branch information
rafaelespinoza committed Jul 17, 2024
1 parent a9b4acc commit b2a89ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Examples:
}

func newFlagSet(name string) (out *flag.FlagSet) {
out = flag.NewFlagSet(name, flag.ExitOnError)
out = flag.NewFlagSet(name, flag.ContinueOnError)
out.SetOutput(os.Stdout)
return
}
Expand Down

0 comments on commit b2a89ac

Please sign in to comment.