commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [cli2] Negative number arguments seen as options
Date Wed, 21 May 2008 10:11:09 GMT
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


Mime
View raw message