Skip to content

Commit 47a4650

Browse files
committed
Auto merge of #6985 - lzutao:zsh-cargo-check, r=ehuss
zsh: Add --all-targets option to cargo-check and cargo-build r? @ehuss
2 parents edd8749 + 9d9ecf0 commit 47a4650

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/etc/_cargo

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ case $state in
4848
_arguments \
4949
'--features=[space separated feature list]' \
5050
'--all-features[enable all available features]' \
51+
'--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \
5152
'(-h, --help)'{-h,--help}'[show help message]' \
5253
'(-j, --jobs)'{-j,--jobs}'[number of parallel jobs, defaults to # of CPUs]' \
5354
"${command_scope_spec[@]}" \
@@ -65,6 +66,7 @@ case $state in
6566
_arguments \
6667
'--features=[space separated feature list]' \
6768
'--all-features[enable all available features]' \
69+
'--all-targets[equivalent to specifying --lib --bins --tests --benches --examples]' \
6870
'(-h, --help)'{-h,--help}'[show help message]' \
6971
'(-j, --jobs)'{-j,--jobs}'[number of parallel jobs, defaults to # of CPUs]' \
7072
"${command_scope_spec[@]}" \

0 commit comments

Comments
 (0)