Skip to content

Count number of occurrences of flag #757

@xeals

Description

@xeals

Is it possible to have count the number of times a given (binary) flag is passed? This would mostly be used for verbosity flag sets, where e.g., -v and -vvv are varying levels of output. The README states "Note that giving two different forms of the same flag in the same command invocation is an error," so this doesn't exactly violate that principle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v2relates to / is being considered for v2help wantedplease help if you can!kind/featuredescribes a code enhancement / feature requeststatus/in-reviewneeds to be reviewed by maintainers before it is accepted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions