You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bob mcwhirter <bo...@werken.com> on 2002/07/28 16:53:40 UTC
Re: [CLI] valid option character(s)
> There should also be a check to prevent using unsuitable characters
> being used e.g. '\r'. I think the Character.isLetter method will provide
> enough validation. What do others think?
Some wacky folks like to use '-?' as the option to get help.
-bob
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [CLI] valid option character(s)
Posted by John Keyes <jb...@mac.com>.
I'll add '@' support as an exception also then.
So what I've done is the following:
. if it is a single char option the valid characters are
isLetter | '@' | '?'
. if it is a string option the valid characters are isLetter
-John K
On Sunday, July 28, 2002, at 08:14 , Henri Yandell wrote:
> +1 for isLetter.
>
> -@ is also used by some programs. zip and things.
>
> On Sun, 28 Jul 2002, John Keyes wrote:
>
>>
>> On Sunday, July 28, 2002, at 02:53 , bob mcwhirter wrote:
>>
>>>> There should also be a check to prevent using unsuitable characters
>>>> being used e.g. '\r'. I think the Character.isLetter method will
>>>> provide
>>>> enough validation. What do others think?
>>>
>>> Some wacky folks like to use '-?' as the option to get help.
>> This can be handled as an exception case then. I suppose we can add
>> others if required.
>>
>> -John K
>>
>>>
>>> -bob
>>>
>>>
>>> --
>>> To unsubscribe, e-mail: <mailto:commons-dev-
>>> unsubscribe@jakarta.apache.org>
>>> For additional commands, e-mail: <mailto:commons-dev-
>>> help@jakarta.apache.org>
>>>
>>
>>
>> --
>> To unsubscribe, e-mail: <mailto:commons-dev-
>> unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: <mailto:commons-dev-
>> help@jakarta.apache.org>
>>
>>
>
>
> --
> To unsubscribe, e-mail: <mailto:commons-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-
> help@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [CLI] valid option character(s)
Posted by Henri Yandell <ba...@generationjava.com>.
+1 for isLetter.
-@ is also used by some programs. zip and things.
On Sun, 28 Jul 2002, John Keyes wrote:
>
> On Sunday, July 28, 2002, at 02:53 , bob mcwhirter wrote:
>
> >> There should also be a check to prevent using unsuitable characters
> >> being used e.g. '\r'. I think the Character.isLetter method will
> >> provide
> >> enough validation. What do others think?
> >
> > Some wacky folks like to use '-?' as the option to get help.
> This can be handled as an exception case then. I suppose we can add
> others if required.
>
> -John K
>
> >
> > -bob
> >
> >
> > --
> > To unsubscribe, e-mail: <mailto:commons-dev-
> > unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:commons-dev-
> > help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [CLI] valid option character(s)
Posted by John Keyes <jb...@mac.com>.
On Sunday, July 28, 2002, at 02:53 , bob mcwhirter wrote:
>> There should also be a check to prevent using unsuitable characters
>> being used e.g. '\r'. I think the Character.isLetter method will
>> provide
>> enough validation. What do others think?
>
> Some wacky folks like to use '-?' as the option to get help.
This can be handled as an exception case then. I suppose we can add
others if required.
-John K
>
> -bob
>
>
> --
> To unsubscribe, e-mail: <mailto:commons-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-
> help@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>