pflag
pflag copied to clipboard
Expose Value implementations to use with FlagSet.AddFlag
It would be useful when dynamically adding Flags
to a FlagSet
to be allowed to reuse the underlying primitive implementations of a Value
.
The boolean implementation for reference: https://github.com/spf13/pflag/blob/master/bool.go#L13
This makes it difficult to use the Flag struct directly because I have to create something identical to boolValue.