commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Roberts <>
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.


		       PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD                             RL Enterprises                            6818 Madeline Court                           Brooklyn, NY 11220

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message