Apache Commons CLI Issue CLI-317

2023-08-11 Thread Sruteesh Kumar
In the DefaultParser class, we are using handleOption method which is defined as following privatevoidhandleOption(Optionoption)throwsParseException{ // check the previous option before handling the next one checkRequiredArgs(); option=(Option)option.clone(); updateRequiredOptions(option); c

Re: Apache Commons CLI Issue CLI-317

2023-08-13 Thread Sruteesh Kumar
wrote: > Hello, > > It would be helpful to understand the upshot of this if you could express > your explanation as a failing unit test. > > TY, > Gary > > On Sat, Aug 12, 2023, 1:44 AM Sruteesh Kumar > sruteesh@protonmail.com.invalid wrote: > >

Re: Apache Commons CLI Issue CLI-317

2023-08-15 Thread Sruteesh Kumar
Hi, I replied to your comment in the ticket. Kindly look into it once Thank you, Sruteesh Kumar Original Message On 16 Aug 2023, 3:13 am, Gary Gregory wrote: > Hi, Please see my comment in the ticket. Gary On Sun, Aug 13, 2023, 9:04 AM > Sruteesh Kumar wrote: >

Query related to Apache Commons CLI

2023-11-12 Thread Sruteesh Kumar
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

Re: Query related to Apache Commons CLI

2023-11-14 Thread Sruteesh Kumar
ment. > > Is there any reason you couldn't use the former? > > Cheers, Paul. > > https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail > > Virus-free.www.avast.com > https://www.avast.com/sig-email?u