summaryrefslogtreecommitdiffstats
path: root/Completion/Base/_describe
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-25 09:48:08 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-25 09:48:08 +0000
commitd49da606702363f0eb5615a341126c2dbe562849 (patch)
tree7946392a9792bff64a6396868335a85c851690f4 /Completion/Base/_describe
parentThings that are in the ChangeLog but that somehow didn't get changed. (diff)
downloadzsh-d49da606702363f0eb5615a341126c2dbe562849.tar
zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.gz
zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.bz2
zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.lz
zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.xz
zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.zst
zsh-d49da606702363f0eb5615a341126c2dbe562849.zip
make _arguments use more than one action when appropriate; add _argument_sets to complete different sets of arguments and options for the same command (10908)
Diffstat (limited to 'Completion/Base/_describe')
-rw-r--r--Completion/Base/_describe6
1 files changed, 6 insertions, 0 deletions
diff --git a/Completion/Base/_describe b/Completion/Base/_describe
index ca2d3e4cf..5aeeadf10 100644
--- a/Completion/Base/_describe
+++ b/Completion/Base/_describe
@@ -10,6 +10,12 @@ local _type=values _descr
if [[ "$1" = -o ]]; then
_type=options
shift
+elif [[ "$1" = -t ]]; then
+ _type="$2"
+ shift 2
+elif [[ "$1" = -t* ]]; then
+ _type="${1[3,-1]}"
+ shift
fi
# Do the tests. `showd' is set if the descriptions should be shown.