Torsten Curdt wrote:
Torsten Curdt wrote:
The proposed release is available at: http://people.apache.org/~roxspring/cli/
...another thing:
command --option1 "-c -P" --option2
currently CLI1 and CLI2 is treating this as if it were
command --option1 -c -P --option2
which is not what I want. For me "-c -P" is a string which is the argument of option1.
Bug or desired behaviour?
The problem here is that "-c" looks like an option. The simplest ways around it are to use the -- "consume remaining" to capture the things that look like short options:
command --options1 -- -c -P --option2
But you do run the risk of -c, -P and -option2 being consumed as arguments to --option1. Alternatively you could set up your DefaultOptionBuilder with something other than "-" for the short option prefix - if you're not using short options at all then reusing "--" should skirt around the issue pretty well.
Hope that helps,
Rob
cheers -- Torsten
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
