From 125dc0d4f2a3c1c4efe942e4d92c412583582f9d Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 9 May 2000 09:05:34 +0000 Subject: new -A and -S options to _arguments; `-opt=-' specs for options whose argument has to come after the `=' (11270) --- Doc/Zsh/compsys.yo | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index ed7de1411..fae8961b7 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2951,7 +2951,10 @@ in one string with the option name, but may also be given as a separate argument after the option, a plus sign should be used instead. If the argument may be given as the next string or in same string as the option name but separated from it by an equal sign, a -`tt(=)' should be used instead of the minus or plus sign. +`tt(=)' should be used instead of the minus or plus sign and if the +argument to the option has to be given in the same string after an +equal sign and may not be given in the next argument, `tt(=-)' should +be used. Note that this and the shortcut syntax with a leading tt(-+) or tt(+-) means that for options like tt(-+) the second character has to be @@ -3093,6 +3096,12 @@ letter. However, strings beginning with two hyphens (like name. This allows the use of the `tt(-s)' option to describe single-letter options together with such long option names. +To simplify the specifications for commands with standard option +parsing, the options tt(-A) and tt(-S) may be given. With tt(-A) no +options will be completed after the first non-option argument on the +line. With tt(-S), no option will be completed after a `tt(-)tt(-)' on +the line and this argument will otherwise be ignored. + Another option supported is `tt(-O) var(name)'. The var(name) will be taken as the name of an array and its elements will be given to functions called to generate matches when executing the -- cgit 1.4.1