Skip to content

Commit

Permalink
Typo caused booleans to be strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Urethramancer committed Mar 10, 2024
1 parent 8a298ce commit 1f69d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arg/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (o *Option) ValidDefault() bool {

// SetFlag is a shortcut to create a bool option defaulting to false.
func (opt *Options) SetFlag(group, short, long, help string) error {
return opt.SetOption(group, short, long, help, false, false, VarString, nil)
return opt.SetOption(group, short, long, help, false, false, VarBool, nil)
}

// SetOption sets an option with parameters, or a flag.
Expand Down

0 comments on commit 1f69d96

Please sign in to comment.