Skip to content

Count number of occurrences of flag #757

Closed

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.

Activity

  1. added
    status/confirmed
    kind/feature
    on Aug 17, 2019
  2. added
    status/in-review
    and removed
    status/confirmed
    on Sep 10, 2019
  3. coilysiren commented on Sep 10, 2019

    @coilysiren
    Member

    This feature is now in review, @urfave/cli please add a 👍 or 👎 to the top post if you're in favor or against this feature being added!

  4. added
    area/v2
    on Nov 27, 2019
  5. stale commented on Feb 25, 2020

    @stale

    This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.

  6. added
    status/stale
    on Feb 25, 2020
  7. added
    help wanted
    on Feb 26, 2020
  8. stale commented on Feb 26, 2020

    @stale

    This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant.

  9. removed
    status/stale
    on Feb 26, 2020
  10. stale commented on May 26, 2020

    @stale

    This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.

  11. added
    status/stale
    on May 26, 2020
  12. brownjohnf commented on Jun 5, 2020

    @brownjohnf

    I'd still really like to see this feature added.

  13. stale commented on Jun 5, 2020

    @stale

    This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant.

  14. 1 remaining item

  15. stale commented on Sep 3, 2020

    @stale

    This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.

  16. added
    status/stale
    on Sep 3, 2020
  17. aengelas commented on Sep 3, 2020

    @aengelas

    This is definitely a feature I would like and would use.

  18. stale commented on Oct 3, 2020

    @stale

    Closing this as it has become stale.

  19. stale commented on Jan 27, 2021

    @stale

    This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant.

  20. removed
    status/stale
    on Jan 27, 2021
  21. dearchap commented on Oct 17, 2022

    @dearchap
    Contributor

    Count option for bool flags has been added.

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

    area/v2help wantedkind/featurestatus/in-review

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions