spf13 / pflag

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
BSD 3-Clause "New" or "Revised" License
2.43k stars 348 forks source link

Export all *Value types #341

Open frebib opened 2 years ago

frebib commented 2 years ago

Promote reuse and make it convenient for users to create and add these Value types hand-crafted pflag.Flag structs when the helper functions can't be used and the raw pflag.Flag value is desired, so it can be passed to FlagSet.AddFlag().

Fixes: https://github.com/spf13/pflag/issues/334 Signed-off-by: Joe Groocock me@frebib.net

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

talbright commented 2 years ago

This is needed, but why not export all the other flag types like duration, bool, etc? To make these even more useful we should export the new functions like newBoolSliceValue