Various fixes, remove _zargs already upstream

Many movings of local inside the actual functions.
Add many missing local and remove -g(!).
Fix namespacing of some parameters and functions, phases() in _scala was nice.
This commit is contained in:
Mikael Magnusson
2012-06-10 02:41:57 +02:00
parent 3497b4841c
commit c3b4d582a0
31 changed files with 406 additions and 440 deletions
+5 -4
View File
@@ -21,7 +21,7 @@
local ret=1 state
declare -ga common_ops
local -a common_ops
common_ops=(
"--version[display version number]"
{-h,--help}"[show help]"
@@ -46,6 +46,7 @@ _arguments \
case $state in
subcommand)
local -a subcommands
subcommands=(
"bundle:create pybundle"
"freeze:put all currently installed packages"
@@ -61,17 +62,17 @@ case $state in
;;
options)
declare -a args
local -a args
args=(
$common_ops
)
declare -a requirement
local -a requirement
requirement=(
{-r,--requirement=}"[install all the packages listed in the given requirements file]:filename:_files"
)
declare -a findlink
local -a findlink
findlink=(
{-f,--find-links=}"[URL to look for packages at]:url"
)