I think this question only makes sense if you give the Options spec
you are using.
Using an Options with both of these:
Option.builder().longOpt('one').numberOfArgs(1).build()
Option.builder('2').numberOfArgs(1).build()
It treats the "-2" as you are expecting.
Using an Options with both of thes
We have fixed a few bugs and added some enhancements since Apache
Commons Compress 1.24.0 was released, so I would like to release
Apache Commons Compress 1.25.0.
Apache Commons Compress 1.25.0 RC1 is available for review here:
https://dist.apache.org/repos/dist/dev/commons/compress/1.25.0-RC1
I have a doubt on Apache Commons CLI
For DefaultParser, why is a negative number preferably considered as an
argument rather than an option
Consider the following case, for example:
String[] args= {"--one","arg1","-2","arg2"};
Here, -2 is considered as an argument to --one, even if there is a r