I would like to define a CLI flag that counts the number of times that it appears.
For example, let's define the flag --verbose with its shorthand -v:
# verbose value should be 0
> myCmd
# verbose value should be 1
> myCmd -v
# verbose value should be 2
> myCmd -vv
# ...
It's there any built-in way to achieve it ?