Skip to content

Expose Value implementations to use with FlagSet.AddFlag #334

@mattysweeps

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.

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