commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menke Jörg, IT2" <>
Subject AW: Use of GnuParser
Date Mon, 07 Apr 2003 08:49:49 GMT
Hello Achim,
> when I recently had the need for a command line parser I 
> discovered the
> CLI library. For my application the GnuParser seemed to 
> provide the best
> match. I ran into a small problem, though. Among other 
> things, my application 
> needs to support two options; -T and -O, both requiring an argument:
>   sampleAppl -T <arg1> -O <arg2>
> Unfortunately, "O" is also a valid value for arg1:
>   sampleAppl -T O 
> GnuParser interpreted in this commandline the "O" as option 
> "-O" not as
> value for "-T". This caused a MissingArgumentException to be thrown.
I have exactly the same here (See thread "Inconsistency in Options.hasOption(String)", for
This should work normally, but - till now - does not (at least with the CVS-Snapshot I tried
last week).

But maybe John has something in the pipe for that problem now... :)

cu, Jörg

View raw message