commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [cli] Are there any 1.0 -> 1.1/1.2-SNAPSHOT upgrade notes
Date Tue, 03 Jun 2008 22:25:31 GMT
On 03/06/2008, Emmanuel Bourg <ebourg@apache.org> wrote:
> 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.
>

I agree it seems most likely it was a mistake.

If a behaviour change had been intended, then there should have been
warnings in the release notes.

And if the behaviour change had been documented, I would have expected
the release vote to generate a few -1s ...

>  Emmanuel Bourg
>
>
>  https://issues.apache.org/jira/browse/CLI-13
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

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


Mime
View raw message