zsh-workers
 help / color / mirror / code / Atom feed
* _arguments - completing option several times
@ 2002-05-15  7:51 Borsenkow Andrej
  2002-05-15  9:10 ` Sven Wischnowsky
  0 siblings, 1 reply; 2+ messages in thread
From: Borsenkow Andrej @ 2002-05-15  7:51 UTC (permalink / raw)
  To: 'Zsh hackers list'


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?

-andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: _arguments - completing option several times
  2002-05-15  7:51 _arguments - completing option several times Borsenkow Andrej
@ 2002-05-15  9:10 ` Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2002-05-15  9:10 UTC (permalink / raw)
  To: zsh-workers


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@berkom.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-15  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-15  7:51 _arguments - completing option several times Borsenkow Andrej
2002-05-15  9:10 ` Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).