From becf65dd7f1e512995eb928f212491d6b1cc8cc7 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 18 Feb 2002 14:36:01 +0000 Subject: allow an argument containing only a single colon as a separator between options to _arguments and specs (16669) --- Doc/Zsh/compsys.yo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/compsys.yo') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 16eff6f77..73ada9ba2 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2996,12 +2996,15 @@ Like tt(_tags) this function supports the tt(-C) option to give a different name for the argument context field. ) findex(_arguments) -item(tt(_arguments) [ tt(-ACS) ] [ tt(-O) var(name) ] [ tt(-M) var(matchspec) ] var(spec) ...)( +item(tt(_arguments) [ tt(-ACS) ] [ tt(-O) var(name) ] [ tt(-M) var(matchspec) ] [ tt(:) ] var(spec) ...)( This function can be used to complete words on the line by describing the options and arguments which may be passed to the command for which completion is being performed. The description is given as arguments to this function, with each var(spec) describing one option or normal -argument of the command. The forms of var(spec) understood are: +argument of the command. To separate these var(spec)s from the +options given to tt(_arguments) itself, they can be preceeded by an +argument containing a single colon. The forms of var(spec) +understood are: startitem() xitem(var(n)tt(:)var(message)tt(:)var(action)) -- cgit 1.4.1