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().
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
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