commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: [cli2] Negative number arguments seen as options
Date Wed, 21 May 2008 03:22:00 GMT
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


Mime
View raw message