Why the leading space inside the quote?
On Tue, May 20, 2008 at 5:51 PM, Roland Roberts <[EMAIL PROTECTED]> 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. I can work around that to provide some way to get in
> negative values, but it just looks like a bug to me. Particularly since I
> specified .withMinimum(1) for the argument, so the parser *has* to know
> there is an argument there.
>
> roland
>
> --
> PGP Key ID: 66 BC 3B CD
> Roland B. Roberts, PhD RL Enterprises
> [EMAIL PROTECTED] 6818 Madeline Court
> [EMAIL PROTECTED] Brooklyn, NY 11220
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]