Use global args array
This commit is contained in:
parent
1a51c426ed
commit
6952f96ee2
|
@ -13,14 +13,13 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# TODO
|
|
||||||
# move global args to separate array, use compadd
|
|
||||||
|
|
||||||
_drush() {
|
_drush() {
|
||||||
local curcontext='$curcontext' state line cmds ret=1
|
local curcontext='$curcontext' state line cmds ret=1
|
||||||
integer NORMARG
|
integer NORMARG
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
|
global_args=('--debug' '--verbose' '--yes' '--no' '--simulate' '--root=' '--uri=')
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'(--*)'{--version,--version}'[Show drush version.]' \
|
'(--*)'{--version,--version}'[Show drush version.]' \
|
||||||
'(- *)'{-d,--debug}'[Display even more information, including internal messages.]' \
|
'(- *)'{-d,--debug}'[Display even more information, including internal messages.]' \
|
||||||
|
|
Loading…
Reference in New Issue