You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Emmanuel Bourg <eb...@apache.org> on 2008/08/01 14:45:02 UTC

Re: [CLI] recent changes to PosixParser

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 difference in CLI



> 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