zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: Re: _arguments - completing option several times
Date: Wed, 15 May 2002 11:10:14 +0200	[thread overview]
Message-ID: <15586.9718.859918.363435@wischnow.berkom.de> (raw)
In-Reply-To: <6134254DE87BD411908B00A0C99B044F0365E990@mowd019a.mow.siemens.ru>


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


      reply	other threads:[~2002-05-15  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-15  7:51 Borsenkow Andrej
2002-05-15  9:10 ` Sven Wischnowsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15586.9718.859918.363435@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).