commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [CLI] Negative numbers and quoting
Date Sat, 09 Jul 2005 11:07:19 GMT
This was also a problem with the original Avalon CLI code. It was
fixed in the updated version submitted via Bugzilla:

http://issues.apache.org/bugzilla/show_bug.cgi?id=34672

The problem was that "-" was being treated as special even when
collecting text for the current option value.

S.
On 7/8/05, Rob Oxspring <roxspring@imapmail.org> wrote:
> Hmmm, this is interesting as negatives will look a lot like real
> options... will have a look over the weekend sometime and get back to you.
> 
> Rob
> 
> Nigel Rantor wrote:
> >
> > Hi all,
> >
> > I've had a bit of a root about and can't find anyone mention of this in
> > the docs or on the MARC archives.
> >
> > I'm using CLI for a few things and I'd now like to be able to have an
> > option accept negative numbers.
> >
> > I looked for docs on the parsers and basically found nothing other than
> > the "Usage Scenarios" which while useful as an into aren't really
> > detailed enough to qualify as documentation.
> >
> > So I played with quoting negative numbers in different ways and had no joy.
> >
> > So, here I am. How do I get a PosixParser to accept negative numbers as
> > the value for an option? Is this simply not supported by the parser? Are
> > there better parser docs somewhere? Could they be linked into the site
> > if they're not?
> >
> > Cheers,
> >
> >   n
> >
> > p.s. Keep up the good work
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message