Skip to content

Commit

Permalink
Exit on flags parsing error (closes #208)
Browse files Browse the repository at this point in the history
  • Loading branch information
adatzer committed Jun 22, 2022
1 parent 9552785 commit c4fafef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql_runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func NewOptions() Options {

// GetFlagSet returns a ptr to the FlagSet.
func (o *Options) GetFlagSet() *flag.FlagSet {
var fs = flag.NewFlagSet("Options", flag.ContinueOnError)
var fs = flag.NewFlagSet("Options", flag.ExitOnError)

fs.BoolVar(&(o.help), "help", false, "Shows this message")
fs.BoolVar(&(o.version), "version", false, "Shows the program version")
Expand Down

0 comments on commit c4fafef

Please sign in to comment.