This library is currently missing flags from the official standard library: * [flag.Func](https://pkg.go.dev/flag#Func) added Go 1.16 * [flag.BoolFunc](https://pkg.go.dev/flag#BoolFunc) added Go 1.21 Could this be added to pflag?
Activity
tomasaschan commentedon Apr 23, 2025
I don't see a reason not to add this. PRs are welcome!
add support for Func() and BoolFunc() spf13#426
add support for Func() and BoolFunc() spf13#426
Merge pull request #429 from LeGEC/426-add-func-and-bool-func
Update module github.com/spf13/pflag to v1.0.7 (#794)
merge: deps: update module github.com/spf13/pflag to v1.0.10
Add BoolFunc equivalent