From 53f0102525def32c358ed52e0a92ee976c1e393c Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 14 Mar 2000 23:57:23 +0000 Subject: zsh-workers/10135 --- Doc/Zsh/compsys.yo | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 13eebe7b1..9c38c3e27 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2339,15 +2339,6 @@ quoted with a backslash. If the option may be given more than once, a star (`tt(*)') has to be added in front of the var(opt-spec). -An var(opt-spec) may also contain a list of other option names with -which the option described is mutually exclusive. Such a list is given -in parentheses at the beginning, as in `tt((-two -three)-one:...)'. In -this example, the options `tt(-two)' and `tt(-three)' will not be -offered as possible completions if the option `tt(-one)' is on the -line. Also, the list may contain a single colon as one of its elements -to specify that the descriptions for normal (non-option-) arguments -should not be used if the option described is on the line. - Finally, the var(opt-spec) may contain a explanation string. This is given in brackets at the end, as in `tt(-q[query operation])'. The tt(verbose) style is used to decide if these @@ -2360,6 +2351,18 @@ first argument. ) enditem() +Every var(spec) may also contain a list of option names and argument +numbers with which the option or argument described is mutually +exclusive. Such a list is given in parentheses at the beginning, as in +`tt((-two -three 1)-one:...)' or `tt((-foo):...)'. In the first +example, the options `tt(-two)' and `tt(-three)' and the first +argument will not be offered as possible completions if the option +`tt(-one)' is on the line. Also, the list may contain a single star as +one of its elements to specify that the description for the rest +arguments should not be used and it may contain a colon to specify +that the descriptions for all normal (non-option-) arguments should +not be used. + In each of the cases above, the var(action) says how the possible completions should be generated. In cases where only one of a fixed set of strings can be completed, these strings can directly be given as -- cgit 1.4.1