zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Obsolete example in doc for _arguments?
Date: Sun, 19 Sep 1999 05:17:53 +0000	[thread overview]
Message-ID: <990919051753.ZM7141@candle.brasslantern.com> (raw)

Here's a snippet from the compsys doc for _aguments.  The example doesn't
match the description at all.  Have I missed something?

     For options that get an argument after a `=', the function also
     tries to automatically find out what should be completed as the
     argument.  The possible completions for option-arguments can be
     described with the arguments after the `--' (which are not used as
     described above). Each argument contains one description of the
     form `PATTERN:MESSAGE:ACTION'. The MESSAGE and the ACTION have the
     same format as for the normal option descriptions described above.
     The ACTION will be executed to complete arguments of options whose
     description in the output of the command from the line with the
     `--help' option matches the PATTERN. For example:

          _arguments -- '*\*'     '(yes no)' \
                        '*=FILE*' '_files' \
                        '*=DIR*'  '_files -/'

     Here, `yes' and `no' will be completed as the argument of options
     whose description ends in a star, file names for options that
     contain the substring `=FILE' in the description, and paths for
     options whose description contains `=DIR'.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


             reply	other threads:[~1999-09-19  5:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-19  5:17 Bart Schaefer [this message]
1999-09-20  8:47 Sven Wischnowsky

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=990919051753.ZM7141@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).