Re: [Jargp-general] Is there anyone out there?
Brought to you by:
dsosnoski
|
From: Matthew W. <un...@id...> - 2005-03-18 05:36:01
|
Brian Hawkins wrote:
>
>> I was actually planning on implementing something like that, but
>> behaving differently - more like "foo -m arg1 -m arg2 -m arg3" to
>> generate an array of size three.
>>
>> I'd prefer to discuss which approach is better (or if supporting both
>> is reasonable) first.
>
>
> Not sure what you mean here. The code currently in CVS supports
> multiple flags. Currently I can do "foo -m arg1 -m arg2 -m arg3", but
> what I cannot do is "foo -m arg1 -m arg2 arg3 arg4". That is until I
> made my changes. The code places the arguments in a List object.
I think what you're describing is "foo -a arg1 -b arg2 -c arg3...". I'm
talking about being able to specify the same control argument ("-m")
multiple times, with multple value arguments, and getting it all
collected into an array whose name is associated with the "-m" control
argument.
To me, that seems more like typical use than "-m arg1 arg2 arg3", while
also more readable.
--
Matthew Weigel
|