[ https://issues.apache.org/jira/browse/CLI-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021237#comment-18021237 ]
David Larochette commented on CLI-350: -------------------------------------- MR: [https://github.com/apache/commons-cli/pull/396] > Add getOptionCount to CommandLine to measure option repetition > -------------------------------------------------------------- > > Key: CLI-350 > URL: https://issues.apache.org/jira/browse/CLI-350 > Project: Commons CLI > Issue Type: Improvement > Components: CLI-1.x > Affects Versions: 1.10.0 > Reporter: David Larochette > Priority: Trivial > > For example a verbosity level switch could be repeated : > `mycommand -vvv` > giving > {code:java} > CommandLine cmdLine = DefaultParser.parse(options, new String[] {"-vvv"}); > assert cmdLine.getOptionCount("v") == 3;{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)