Russel Winder a écrit :

Actually I think that will give [ 'source=1.5' , 'target=1.5'] but that
is fine.

The withValueSeparator() method splits the value on the equal sign, that's why the option receives the values 'source' and '1.5' instead of 'source=1.5'.


This is the 1.0 semantics I think.  I guess the question is why did the
semantics get changed, there must have been a rationale.

I'm almost convinced this was a mistake. I dug into the Subversion history and the collection of Options in the CommandLine class was changed to a Set (thus forcing only one occurrence for each option) in a patch attached to CLI-13. This issue was about getOptionValue() not working with the long option name, it had nothing to do with the semantic of the number of arguments.

Emmanuel Bourg


https://issues.apache.org/jira/browse/CLI-13

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to