From e8bb81d105132055ad904ed07b32e4301fadf0fa Mon Sep 17 00:00:00 2001 From: cc Date: Tue, 21 Jul 2026 21:05:44 +0800 Subject: [PATCH] chore(completion): Add -p and --package flags to cargo add --- etc/_cargo | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/_cargo b/etc/_cargo index b964c4b2638..06fdb5c4095 100644 --- a/etc/_cargo +++ b/etc/_cargo @@ -89,6 +89,7 @@ _cargo() { '--branch=[branch to use when adding from git]:branch' \ '--git=[specify URL from which to add the crate]:url:_urls' \ '--path=[local filesystem path to crate to add]: :_directories' \ + '(-p --package)'{-p+,--package=}'[specify package to add dependencies to]:package:_cargo_package_names' \ '--rev=[specific commit to use when adding from git]:commit' \ '--tag=[tag to use when adding from git]:tag' \ '--ignore-rust-version[Ignore rust-version specification in packages]' \