@@ -68,16 +68,16 @@ _cargo() {
68
68
case ${words[1]} in
69
69
add)
70
70
_arguments -s -A "^--" $common $manifest $registry \
71
- {-F+,--features=}'[specify features to activate]:feature'
72
- "--default-features[enable the default features]"
73
- "--no-default-features[don't enable the default features]"
74
- "--optional[mark the dependency as optional]"
75
- "--no-optional[mark the dependency as required]"
76
- "--dev[add as a dev dependency]"
77
- "--build[add as a build dependency]"
78
- "--target=[add as a dependency to the given target platform]"
79
- "--rename=[rename the dependency]"
80
- "--dry-run[don't actually write the manifest]"
71
+ {-F+,--features=}'[specify features to activate]:feature' \
72
+ "--default-features[enable the default features]" \
73
+ "--no-default-features[don't enable the default features]" \
74
+ "--optional[mark the dependency as optional]" \
75
+ "--no-optional[mark the dependency as required]" \
76
+ "--dev[add as a dev dependency]" \
77
+ "--build[add as a build dependency]" \
78
+ "--target=[add as a dependency to the given target platform]" \
79
+ "--rename=[rename the dependency]" \
80
+ "--dry-run[don't actually write the manifest]" \
81
81
'--branch=[branch to use when adding from git]:branch' \
82
82
'--git=[specify URL from which to add the crate]:url:_urls' \
83
83
'--path=[local filesystem path to crate to add]: :_directories' \
@@ -182,7 +182,7 @@ _cargo() {
182
182
183
183
locate-project)
184
184
_arguments -s -S $common $manifest \
185
- '--message-format=[specify output representation]:output representation [json]:(json plain)'
185
+ '--message-format=[specify output representation]:output representation [json]:(json plain)' \
186
186
'--workspace[locate Cargo.toml of the workspace root]'
187
187
;;
188
188
0 commit comments