summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-05-14 18:16:44 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-05-14 18:16:44 +0000
commit7aefbdb937fcb1ff95a00f76ef386a644218d326 (patch)
tree6dfa3b56774f3d796131b7e4b41026569290c3ec /Doc/Zsh
parentad30100e09d949ee1bf786e5e7448c0024a70e77 (diff)
downloadzsh-7aefbdb937fcb1ff95a00f76ef386a644218d326.tar.gz
zsh-7aefbdb937fcb1ff95a00f76ef386a644218d326.tar.xz
zsh-7aefbdb937fcb1ff95a00f76ef386a644218d326.zip
29271: document _alternative -O name.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 0fdd6d017..35b200bd2 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -3419,7 +3419,7 @@ tt(compadd) with additional options which will take precedence over
 those generated by tt(_all_labels).
 )
 findex(_alternative)
-item(tt(_alternative) [ tt(-C) var(name) ] var(spec) ...)(
+item(tt(_alternative) [ tt(-O) var(name) ] [ tt(-C) var(name) ] var(spec) ...)(
 This function is useful in simple cases where multiple tags are available.
 Essentially it implements a loop like the one described for the tt(_tags)
 function below.
@@ -3446,6 +3446,10 @@ the actions, which will loop over all sets of tags.  Special handling is
 only required if there is an additional valid tag, for example inside a
 function called from tt(_alternative).
 
+The option `tt(-O) var(name)' is used in the same way as by the
+tt(_arguments) function.  In other words, the elements of the var(name)
+array will be passed to tt(compadd) when executing an action.
+
 Like tt(_tags) this function supports the tt(-C) option to give a
 different name for the argument context field.
 )