refator help

This commit is contained in:
Valentin Haenel
2015-02-10 16:19:02 +01:00
parent ab7bce3f79
commit 17a504c37b

5
_conda
View File

@@ -78,8 +78,8 @@ _arguments -C $opts \
': :->command' \
'*:: :->subcmd'
install_opts=(
'(-h --help)'{-h,--help}'[show the help message and exit]' \
'(-y --yes)'{-y,--yes}'[do not ask for confirmation]' \
'--dry-run[only display what would have been done]' \
'(-f --force)'{-f,--force}'[force install]' \
@@ -108,8 +108,7 @@ case $state in
(subcmd)
case ${line[1]} in
(install)
_arguments -C '(-h --help)'{-h,--help}'[show the help message and exit]' \
$install_opts \
_arguments -C $install_opts \
'--revision[revert to the specified revision]:revision' \
'*:packages:__conda_packages_search' \
;;