commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Roberts <rol...@astrofoto.org>
Subject Re: [cli2] Negative number arguments seen as options
Date Tue, 20 May 2008 21:51:06 GMT
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
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


Mime
View raw message