cli icon indicating copy to clipboard operation
cli copied to clipboard

Count number of occurrences of flag

Open xeals opened this issue 7 years ago • 10 comments

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.

xeals avatar Jun 27 '18 07:06 xeals

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!

coilysiren avatar Sep 10 '19 06:09 coilysiren

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.

stale[bot] avatar Feb 25 '20 08:02 stale[bot]

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.

stale[bot] avatar Feb 26 '20 05:02 stale[bot]

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.

stale[bot] avatar May 26 '20 06:05 stale[bot]

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

brownjohnf avatar Jun 05 '20 00:06 brownjohnf

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.

stale[bot] avatar Jun 05 '20 00:06 stale[bot]

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.

stale[bot] avatar Sep 03 '20 01:09 stale[bot]

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

aengelas avatar Sep 03 '20 15:09 aengelas

Closing this as it has become stale.

stale[bot] avatar Oct 03 '20 18:10 stale[bot]

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.

stale[bot] avatar Jan 27 '21 18:01 stale[bot]

Count option for bool flags has been added.

dearchap avatar Oct 17 '22 10:10 dearchap