From 9310826027fcd5a2a4b868f3cc89b1a5995aa931 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 13 Jun 2000 12:14:32 +0000 Subject: 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 (?) --- Doc/Zsh/compsys.yo | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Doc/Zsh/compsys.yo') 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 -- cgit 1.4.1