From 6952f96ee2fab3a31ddb8bd4d326c510a68184f9 Mon Sep 17 00:00:00 2001 From: Vasily Kraev Date: Sat, 17 May 2014 22:03:00 +0400 Subject: [PATCH] Use global args array --- src/_drush | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/_drush b/src/_drush index 8bf0198..03fa328 100644 --- a/src/_drush +++ b/src/_drush @@ -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.]' \