[PATCH]: shell-complete command
Lalo Martins
lalo at exoweb.net
Tue Aug 23 03:43:26 BST 2005
And so says Clint Adams on 23/08/05 10:35...
>>Since it's a design goal to have the options be consistent, I'd rather
>>have these definitions in a centralized place, such as the OPTIONS variable.
>>
>>(Actually, OPTIONS already "knows" whether an option takes an argument
>>or not, and the type. You just don't get a meta-variable name.)
>
> Where would you suggest for the "meta-variable name"?
I'd suggest another dictionary, something like OPTION_ARGS. Neat thing
is, if an option does take an argument but a name is not given in
OPTION_ARGS, you can use some default. (Maybe the option name?)
best,
Lalo Martins
--
So many of our dreams at first seem impossible,
then they seem improbable, and then, when we
summon the will, they soon become inevitable.
--
http://www.exoweb.net/ mailto:lalo at exoweb.net
GNU: never give up freedom http://www.gnu.org/
More information about the bazaar
mailing list