Skip to content

Expose Value implementations to use with FlagSet.AddFlag #334

Description

@mattysweeps

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions