add description for --color

This commit is contained in:
Frederick Zhang 2017-01-07 20:48:11 +11:00
parent d326cc5c41
commit da30a1d6d2

View File

@ -34,7 +34,7 @@ case $state in
'--target=[target triple]: :_get_targets' \ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
build) build)
@ -51,7 +51,7 @@ case $state in
'--target=[target triple]: :_get_targets' \ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
clean) clean)
@ -63,7 +63,7 @@ case $state in
'--release[whether or not to clean release artifacts]' \ '--release[whether or not to clean release artifacts]' \
'--target=[target triple(default:all)]: :_get_targets' \ '--target=[target triple(default:all)]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
doc) doc)
@ -81,7 +81,7 @@ case $state in
'--release[build artifacts in release mode, with optimizations]' \ '--release[build artifacts in release mode, with optimizations]' \
'--target=[build for the target triple]: :_get_targets' \ '--target=[build for the target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
fetch) fetch)
@ -90,7 +90,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \ '--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
generate-lockfile) generate-lockfile)
@ -99,7 +99,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \ '--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
git-checkout) git-checkout)
@ -109,7 +109,7 @@ case $state in
'--reference=[REF]' \ '--reference=[REF]' \
'--url=[URL]' \ '--url=[URL]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
help) help)
@ -126,14 +126,14 @@ case $state in
'--name=[set the resulting package name]' \ '--name=[set the resulting package name]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
install) install)
_arguments \ _arguments \
'--bin=[only install the specified binary]' \ '--bin=[only install the specified binary]' \
'--branch=[branch to use when installing from git]' \ '--branch=[branch to use when installing from git]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'--debug[build in debug mode instead of release mode]' \ '--debug[build in debug mode instead of release mode]' \
'--example[install the specified example instead of binaries]' \ '--example[install the specified example instead of binaries]' \
'--features=[space separated feature list]' \ '--features=[space separated feature list]' \
@ -163,7 +163,7 @@ case $state in
'--host=[Host to set the token for]' \ '--host=[Host to set the token for]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
metadata) metadata)
@ -177,7 +177,7 @@ case $state in
'--features=[space separated feature list]' \ '--features=[space separated feature list]' \
'--all-features[enable all available features]' \ '--all-features[enable all available features]' \
'--format-version=[format version(default: 1)]' \ '--format-version=[format version(default: 1)]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
new) new)
@ -188,7 +188,7 @@ case $state in
'--name=[set the resulting package name]' \ '--name=[set the resulting package name]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
owner) owner)
@ -201,7 +201,7 @@ case $state in
'(-r, --remove)'{-r,--remove}'[remove owner LOGIN]' \ '(-r, --remove)'{-r,--remove}'[remove owner LOGIN]' \
'--token[API token to use when authenticating]' \ '--token[API token to use when authenticating]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
package) package)
@ -213,7 +213,7 @@ case $state in
'--no-verify[do not build to verify contents]' \ '--no-verify[do not build to verify contents]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
pkgid) pkgid)
@ -222,7 +222,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \ '--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
publish) publish)
@ -234,7 +234,7 @@ case $state in
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--token[token to use when uploading]' \ '--token[token to use when uploading]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
read-manifest) read-manifest)
@ -242,7 +242,7 @@ case $state in
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
'--manifest-path=[path to manifest]: :_files -/' \ '--manifest-path=[path to manifest]: :_files -/' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
run) run)
@ -259,13 +259,13 @@ case $state in
'--release=[build in release mode]' \ '--release=[build in release mode]' \
'--target=[target triple]' \ '--target=[target triple]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'*: :_normal' \ '*: :_normal' \
;; ;;
rustc) rustc)
_arguments \ _arguments \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'--features=[features to compile for the package]' \ '--features=[features to compile for the package]' \
'--all-features[enable all available features]' \ '--all-features[enable all available features]' \
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
@ -283,7 +283,7 @@ case $state in
rustdoc) rustdoc)
_arguments \ _arguments \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'--features=[space-separated list of features to also build]' \ '--features=[space-separated list of features to also build]' \
'--all-features[enable all available features]' \ '--all-features[enable all available features]' \
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
@ -301,7 +301,7 @@ case $state in
search) search)
_arguments \ _arguments \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
'--host=[host of a registry to search in]' \ '--host=[host of a registry to search in]' \
'--limit=[limit the number of results]' \ '--limit=[limit the number of results]' \
@ -325,14 +325,14 @@ case $state in
'--release[build artifacts in release mode, with optimizations]' \ '--release[build artifacts in release mode, with optimizations]' \
'--target=[target triple]: :_get_targets' \ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'1: :_test_names' \ '1: :_test_names' \
;; ;;
uninstall) uninstall)
_arguments \ _arguments \
'--bin=[only uninstall the binary NAME]' \ '--bin=[only uninstall the binary NAME]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
'(-q, --quiet)'{-q,--quiet}'[less output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[less output printed to stdout]' \
'--root=[directory to uninstall packages from]' \ '--root=[directory to uninstall packages from]' \
@ -348,7 +348,7 @@ case $state in
'--precise=[update single dependency to PRECISE]: :' \ '--precise=[update single dependency to PRECISE]: :' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
verify-project) verify-project)
@ -357,14 +357,14 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \ '--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \ '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
version) version)
_arguments \ _arguments \
'(-h, --help)'{-h,--help}'[show help message]' \ '(-h, --help)'{-h,--help}'[show help message]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
;; ;;
yank) yank)
@ -375,7 +375,7 @@ case $state in
'--token[API token to use when authenticating]' \ '--token[API token to use when authenticating]' \
'--undo[undo a yank, putting a version back into the index]' \ '--undo[undo a yank, putting a version back into the index]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \ '--color=[coloring]:colorization option:(auto always never)' \
'--vers[yank version]' \ '--vers[yank version]' \
;; ;;
esac esac