commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <flame...@gmail.com>
Subject Re: [cli2] Negative number arguments seen as options
Date Fri, 23 May 2008 19:25:20 GMT
Release it? :)

CLI1 and CLI2 are already basically different parsers and living in
the same site. If you want the Avalon one out there, go for it and I
don't see any reason why it can't be on the same site.

Hen

On Wed, May 21, 2008 at 3:11 AM, sebb <sebbaz@gmail.com> wrote:
> Dare I say it:
>
> this used to be a problem for the Avalon CLI package used by JMeter,
> but it was fixed a long time ago. [The parser is very different so I
> doubt the fix would apply to CLI2]
>
> The Avalon CLI was added to SVN some while ago; it would be nice if it
> could be released ;-)
>
> On 21/05/2008, James Carman <james@carmanconsulting.com> wrote:
>> FYI:
>>
>>  https://issues.apache.org/jira/browse/CLI-150
>>
>>
>>
>>  On Tue, May 20, 2008 at 11:22 PM, James Carman
>>  <james@carmanconsulting.com> wrote:
>>  > What type of parser are you using?
>>  >
>>  > On Tue, May 20, 2008 at 10:51 PM, Roland Roberts <roland@astrofoto.org>
wrote:
>>  >> James Carman wrote:
>>  >>>
>>  >>> Why the leading space inside the quote?
>>  >>>
>>  >>
>>  >> The first part of the answer was and is NO.  Quoting does not help.  Single
>>  >> quotes, double quotes, backslashes, nada, nothing, zip, zilch, no effect.
>>  >>
>>  >> The second part of the answer was IF I DO and put the quote at the
>>  >> beginning, then the parser does not consider it to be an option, but it
>>  >> fails to convert to an integer.
>>  >>
>>  >> Quoting doesn't help.
>>  >>
>>  >> roland
>>  >>>
>>  >>> On Tue, May 20, 2008 at 5:51 PM, Roland Roberts <roland@astrofoto.org>
>>  >>> wrote:
>>  >>>
>>  >>>>
>>  >>>> James Carman wrote:
>>  >>>>
>>  >>>>>
>>  >>>>> Can you quote it?
>>  >>>>>
>>  >>>>
>>  >>>> No.  If I do
>>  >>>>
>>  >>>> foo --value " -2"
>>  >>>>
>>  >>>> it "works" but then 'new Integer(" -2") throws NumberException;
it
>>  >>>> doesn't
>>  >>>> like leading spaces.
>>  >>
>>  >> --
>>  >>                       PGP Key ID: 66 BC 3B CD
>>  >> Roland B. Roberts, PhD                             RL Enterprises
>>  >> roland@rlenter.com                            6818 Madeline Court
>>  >> roland@astrofoto.org                           Brooklyn, NY 11220
>>  >>
>>  >>
>>  >> ---------------------------------------------------------------------
>>  >> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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