Siegfried Goeschl wrote:
deployed the current snapshot to
http://people.apache.org/repo/m2-snapshot-repository/org/apache/commons/commons-cli/2.0-SNAPSHOT/
Thanks!
roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
Michael Heuer wrote:
Hello,
My use case is -h,--help text prints to STDOUT and command line errors print to
STDERR.
[...]
But if there is a missing required option, the help part is unreachable, since
a MissingOptionException is thrown
Yes, it does and in that case you need to handle the
Oops, I just realized that my example was with CLI 2.0, but the idea is
the same.
roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
rol...@rlenter.com6818 Madeline Court
rol...@astrofoto.org
It's been a year since I last downloaded a snapshot of commons-cli-2.0,
which I have been happily using, but I thought I would check back for a
newer copy. Unfortunately, my memory is failing, no doubt due to
advancing age and I can't remember (or find) where do get a copy.
Can someone give
I just discovered that an option that takes an argument can't provide a
negative value, --value -2 is seen as option value followed by option
2. This is true even if I use NumberValidator; I tried that thinking
it might provide a hint to the parser.
259 roland cd commons-cli-2.0
260 roland
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