mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-08-23 02:33:16 +08:00
refator help
This commit is contained in:
5
_conda
5
_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' \
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user