mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Use global args array
This commit is contained in:
+2
-3
@@ -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.]' \
|
||||
|
||||
Reference in New Issue
Block a user