about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-13 12:14:32 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-13 12:14:32 +0000
commit9310826027fcd5a2a4b868f3cc89b1a5995aa931 (patch)
treeac7d7ace846ed95bb628e81fcf018c970ad386e0 /Doc/Zsh
parentbde4cfde51526bb8910c1dfbce8b6e4c4e1f5149 (diff)
downloadzsh-9310826027fcd5a2a4b868f3cc89b1a5995aa931.tar.gz
zsh-9310826027fcd5a2a4b868f3cc89b1a5995aa931.tar.xz
zsh-9310826027fcd5a2a4b868f3cc89b1a5995aa931.zip
make -A take a pattern as argument to match non-arguments; allow single-letter option strings to have multiple arguments; fix to allow option completion with multiple sets (?)
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo13
1 files changed, 9 insertions, 4 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 5167c626b..ef0b28a3a 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -2931,10 +2931,15 @@ example(_arguments \
     {-d,--decompress}'[decompress]')
 
 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.
+parsing, the options tt(-S) and tt(-A) may be given.  With tt(-S), no
+option will be completed after a `tt(-)tt(-)' on the line and this
+argument will otherwise be ignored. With tt(-A), no options will be
+completed after the first non-option argument on the line.  The tt(-A) 
+has to be followed by a pattern matching all strings which are not to
+be taken as arguemnts. For example, to make tt(_arguments) stop
+completing options after the first normal argument, but ignoring all
+strings starting with a hyphen even if they are not described by one
+of the var(optspec)s, one would use: `tt(-A "-*")'.
 
 Note that using multiple sets will be slower than using only one set
 because the completion code has to parse the command line once for