Skip to content

Commit bc45156

Browse files
authored
fix: replace flag.BoolFunc with flag.Func (#12)
1 parent 4ed295d commit bc45156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sloglint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func flags(opts *Options) flag.FlagSet {
4747
fs := flag.NewFlagSet("sloglint", flag.ContinueOnError)
4848

4949
boolVar := func(value *bool, name, usage string) {
50-
fs.BoolFunc(name, usage, func(s string) error {
50+
fs.Func(name, usage, func(s string) error {
5151
v, err := strconv.ParseBool(s)
5252
*value = v
5353
return err

0 commit comments

Comments
 (0)