pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Export all *Value types

Open frebib opened this issue 3 years ago • 2 comments

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 [email protected]

frebib avatar Jan 23 '22 11:01 frebib

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 23 '22 11:01 CLAassistant

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

talbright avatar Jun 12 '22 14:06 talbright