From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Matt Armstrong <matt@corp.phone.com>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: _arguments question
Date: Thu, 13 Jul 2000 15:56:56 +0000 [thread overview]
Message-ID: <1000713155656.ZM19241@candle.brasslantern.com> (raw)
In-Reply-To: <20000713082003.A9067@corp.phone.com>
On Jul 13, 8:20am, Matt Armstrong wrote:
} Subject: Re: _arguments question
}
} > To say that with either of the options, the argument may not be
} > completed, you include either its number or a `:' in their exclusion
} > lists (the `:' means that no argument at all may be completed after
} > the option).
}
} Ahh, neat trick. I would suggest adding this to the man page -- I
} could not find it.
In the entry for _arguments:
Each of the six forms of SPEC (yes, there are six, keep track of
the nestings) may be preceded by a list of option names and
argument numbers with which the option or argument described is
mutually exclusive. This list is given in parentheses, as in
`(-two -three 1)-one:...' or `(-foo):...'. In the first example,
the options `-two' and `-three' and the first argument will not be
offered as possible completions if the option `-one' is on the
line before the cursor, and in the second example the option
`-foo' will not be offered if the argument described by the
specification is on the line.
The list may also contain a single star (*) as one of its elements
to specify that the description for the rest arguments (i.e. a
specification of the form `*:...') should not be used, a colon (:)
to specify that the descriptions for all normal (non-option-)
arguments should not be used and a hyphen (-) to specify that the
descriptions for all options should not be used. This paragraph
desperately needs rewriting.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2000-07-13 15:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-13 8:57 Sven Wischnowsky
2000-07-13 15:20 ` Matt Armstrong
2000-07-13 15:56 ` Bart Schaefer [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-07-12 17:40 Matt Armstrong
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=1000713155656.ZM19241@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=matt@corp.phone.com \
--cc=zsh-users@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).