Use global args array

This commit is contained in:
Vasily Kraev 2014-05-17 22:03:00 +04:00
parent 1a51c426ed
commit 6952f96ee2
1 changed files with 2 additions and 3 deletions

View File

@ -13,14 +13,13 @@
#
# ------------------------------------------------------------------------------
# TODO
# move global args to separate array, use compadd
_drush() {
local curcontext='$curcontext' state line cmds ret=1
integer NORMARG
typeset -A opt_args
global_args=('--debug' '--verbose' '--yes' '--no' '--simulate' '--root=' '--uri=')
_arguments -C \
'(--*)'{--version,--version}'[Show drush version.]' \
'(- *)'{-d,--debug}'[Display even more information, including internal messages.]' \