diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-19 13:09:06 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-19 13:09:06 +0000 |
commit | c071087d1f9850d2c6e9c690797d833c6cb6268f (patch) | |
tree | c1e4af6d82b642ecaa074b7c6497836f74a91ddf /Doc | |
parent | 030130366618816fdf35ac4d18d85fe8d959dd98 (diff) | |
download | zsh-c071087d1f9850d2c6e9c690797d833c6cb6268f.tar.gz zsh-c071087d1f9850d2c6e9c690797d833c6cb6268f.tar.xz zsh-c071087d1f9850d2c6e9c690797d833c6cb6268f.zip |
_arguments: small fix for -s and new `!...' for things not to complete (but to understand) (11985)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/compsys.yo | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 71ceb9ab0..afba2eed3 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2800,6 +2800,17 @@ that the descriptions for all normal (non-option-) arguments should not be used and a hyphen (tt(-)) to specify that the descriptions for all options should not be used. This paragraph desperately needs rewriting. +To simplify writing writing functions that call tt(_arguments) more +than once, the var(specs) may also start with the character `tt(!)' +(exclamation mark) to make the spec em(not) be completed. However, if +this is used with one of the forms describing options, the option (and +its arguments, if it takes any) will be understood and skipped if they +appear on the command line. It's just that the option itself will not +be completed. This is intended to be used with an array containing the +options used in the first call to tt(arguments). The second call can +then use `tt(\!${^global_options})' to ignore those options and +complete only the ones understood in the current context. + In every case above, the var(action) determines how the possible completions should be generated. In places where no sensible matches can be generated, the action should consist of only a space. This will make |