From 17a504c37bfd2557178465810efa4d9af99178c8 Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Tue, 10 Feb 2015 16:19:02 +0100 Subject: [PATCH] refator help --- _conda | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_conda b/_conda index cfc6b26..b7f4cdb 100644 --- a/_conda +++ b/_conda @@ -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' \ ;;