commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Keyes <johnkeyes.apa...@gmail.com>
Subject Re: [CLI] Maybe a bug?
Date Thu, 13 Oct 2005 10:51:50 GMT
Alex are you calling as:
"cmd -d /usr/bin , /etc" (case A)
or
"cmd -d /usr/bin,/etc" (case B)

The value separator is used only in the case of a single string token. In
case A there are four tokens passed '-d' '/usr/bin' ',' and '/etc'. In case
B there are only two tokens passed '-d' '/usr/bin,/etc'.

-John K

On 10/11/05, Alex <alex.soto@partners.netfocus.es> wrote:
>
> Hello, maybe i have encoutred a bug in version 2.0 of CLI. If i create
> the next Argument
>
> new ArgumentBuilder().withDescription(withDescription)
>
> .withLongName(withLongName)
>
> .withMaximumSize(withMaxSize)
>
> .withMinimumSize(withMinSize)
> .withName(withName)
>
> .withRequired(required)
>
> .withValueName(withValueName)
>
> .withValueSeparator(valueSeparator)
>
> .withValueValidator(withValueValidator)
>
> .withValueType(type)
> .create();
> where with valueSeparator = ','
>
> Then if i created the next entry {"-d","/usr/bin",",","/etc"}; then an
> error is encoutred, but, if i put {"-d","/usr/bin","/etc"} works
> perfectly, but if you see i have no specified any separator.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message