commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [CLI] recent changes to PosixParser
Date Fri, 01 Aug 2008 12:45:56 GMT
Russel Winder a écrit :
> The recent commits to the CLI code has removed the silent absorbing of
> unknown single letter options by the PosixParser which is good.  Also
> the really bizarre behaviour with single hyphen, multicharacter options
> by the PosixParser has been removed, which is good.  However with the
> second of these the hyphen gets removed which is not true of the
> BasicParser or GnuParser.  Should all three behave the same?

I documented the differences in JIRA:

https://issues.apache.org/jira/browse/CLI-147


> Unfortunately, the changes have extended other bizarre behaviours of the
> PosixParser.  In particular, I am finding that I am getting a response
> of '--' from the PosixParser.getOptionValue in situations where I didn't
> used to.  The new situation is more consistent than it was in that this
> used to happen for long option but not for short options.  Of course the
> new situation means that a case that used to work now does not.
> 
> I will try and work out a proper unit test.

If you don't have the time to work on a complete unit test just give me
an example, I'll write the test.

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message