about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-09 09:05:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-09 09:05:34 +0000
commit125dc0d4f2a3c1c4efe942e4d92c412583582f9d (patch)
tree7440be739687f4275c365d00f050418537461019 /Doc/Zsh
parente5eb094bf3c031f07f7e9ab152fe63a120dd3821 (diff)
downloadzsh-125dc0d4f2a3c1c4efe942e4d92c412583582f9d.tar.gz
zsh-125dc0d4f2a3c1c4efe942e4d92c412583582f9d.tar.xz
zsh-125dc0d4f2a3c1c4efe942e4d92c412583582f9d.zip
new -A and -S options to _arguments; `-opt=-' specs for options whose argument has to come after the `=' (11270)
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo11
1 files changed, 10 insertions, 1 deletions
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