Closed xnslong closed 2 years ago
Given a FlagCounter arg definition as following
FlagCounter
verboseCounter = parser.FlagCounter("v", "verbose", &argparse.Options{ Required: false, Validate: nil, Help: "", Default: 0, })
the help message displays it in the same style as an Int arg.
Int
[-v|--verbose <integer>]
however, it can not be used in the same way as an Int arg
-v 1 -v 2 -v 3
instead it should be used in the flag way.
-v -vv -vvv
Looks like a bug to me.
Given a
FlagCounter
arg definition as followingthe help message displays it in the same style as an
Int
arg.however, it can not be used in the same way as an
Int
arginstead it should be used in the flag way.