commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Neidhart <thomas.neidh...@gmail.com>
Subject Re: [CLI] - withValueSeparator() usage
Date Sun, 03 Feb 2013 20:56:16 GMT
On 02/03/2013 06:29 PM, Greg Thomas wrote:
> I've had a look; I the only place that could do with clarification is
> the javadoc for getOptionValues @
> http://commons.apache.org/cli/api-release/org/apache/commons/cli/CommandLine.html#getOptionValues(java.lang.String)
> / http://commons.apache.org/cli/api-release/org/apache/commons/cli/CommandLine.html#getOptionValues(char)
> 
> Currently, both say:
> 
> "Retrieves the array of values, if any, of an option."
> 
> I'd suggest something like;
> 
> Where a valueSeparator is used to separate two argument values, these
> will return both values in an array of length 2.
> @see OptionBuilder#withValueSeparator()

I think the examples provided in OptionBuilder#withValueSeparator() and
OptionBulder#withValueSeparator(char) should be improved to clearly
indicate that this separator is only used to distinguish between key and
value, and not to split values itself.

Thomas

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


Mime
View raw message