diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-25 09:48:08 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-25 09:48:08 +0000 |
commit | d49da606702363f0eb5615a341126c2dbe562849 (patch) | |
tree | 7946392a9792bff64a6396868335a85c851690f4 /Completion/Base/_describe | |
parent | fc56c6231290db7b1979b2d6d3a978a5906c67ac (diff) | |
download | zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.gz zsh-d49da606702363f0eb5615a341126c2dbe562849.tar.xz 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/_describe | 6 |
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. |