Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _arguments - completing option several times
- X-seq: zsh-workers 17165
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: _arguments - completing option several times
- Date: Wed, 15 May 2002 11:10:14 +0200
- In-reply-to: <6134254DE87BD411908B00A0C99B044F0365E990@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <6134254DE87BD411908B00A0C99B044F0365E990@xxxxxxxxxxxxxxxxxxxxxxx>
Borsenkow Andrej wrote:
>
> Why this does not work?
>
> '(-f --file)'{\*-d,\*--directory=}'[add directory to infopath]:info
> dir:_files -/'
>
> I get
>
> bor@itsrm2% info -d /x/y/z -d /to/i zs
> No matches for: `menu items' or `menu item'
>
> Note that it tries to interpret option value as argument?
Hm, with the line (in _info) looking like:
'(-f --file)'\*{-d,--directory=}'[add directory to infopath]:_files -/' \
it works for me. The roiginal had `-d --directory' in the exclusion
list and only with that it doesn't work. Explicitly mentioning options
in exclusion lists takes precedence over a `*' before the option.
I.e., in this case it takes the second `-d ...' as being arguments.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author