commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [cli2] Negative number arguments seen as options
Date Thu, 29 May 2008 16:59:19 GMT
On 29/05/2008, Emmanuel Bourg <ebourg@apache.org> wrote:
> sebb a écrit :
>
>
> > JMeter originally used the CLI code from Excalibur/Avalon, but the
> > project appeared defunct so when some bugs needed fixing the CLI code
> > was extracted, copied to JMeter and fixed.
> >
> > The Avalon CLI code in Commons is a copy of the JMeter version.
> >
> > Although Commons CLI is partly derived from Avalon, the interface is
> > very different.
> >
>
>  Do you know what features or bug fixes implemented in Avalon/JMeter CLI are
> missing from Commons CLI1/CLI2 ?
>

I never used CLI1/CLI2.

However, the fixes needed to the original Excalibur/Avalon code include:
* Fix bug where second arg could not contain "-"
* Fix -D arg1=arg2 parsing bug
* allow arguments with leading -
* Handle missing second argument where next arg is an option
* sorted 2-arg options with leading - in value
* Fix CLI long optional argument to require "=" (as for short options)

The original code was added to JMeter in r325134; the last fix was in r571988.

HTH.

>
>  Emmanuel Bourg
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

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


Mime
View raw message