Skip to content

BoolsOpt() for repeated flags (Boolean options)? #123

@curio77

Description

@curio77

Am I mistaken or is there no way to have repeated Boolean options (flags), such as -vvv (say, for increasing a verbosity level)? With pflag, this is possible.

Intuitively, there should be a cmd.BoolsOpt() method enabling this (either operating on an int value or a []bool slice).

Opinions?

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