Skip to content

Commit 420b9ef

Browse files
committed
fix: Update bash and zsh Autocompletion Documents to add -m
`-m` is short for `--manifest-path`, and must be added in places where `--manifest-path` could be accepted.
1 parent b0f187b commit 420b9ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/etc/_cargo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ _cargo() {
6464
msgfmt='--message-format=[specify error format]:error format [human]:(human json short)'
6565
triple='--target=[specify target triple]:target triple:_cargo_target_triple'
6666
target='--target-dir=[specify directory for all generated artifacts]:directory:_directories'
67-
manifest='--manifest-path=[specify path to manifest]:path:_directories'
67+
manifest='(-m --manifest-path)=[specify path to manifest]:path:_directories'
6868
registry='--registry=[specify registry to use]:registry'
6969

7070
case $state in

src/etc/cargo.bashcomp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _cargo()
4848
local opt_pkg_spec='-p --package --all --exclude --workspace'
4949
local opt_pkg='-p --package'
5050
local opt_feat='-F --features --all-features --no-default-features'
51-
local opt_mani='--manifest-path'
51+
local opt_mani='-m --manifest-path'
5252
local opt_jobs='-j --jobs'
5353
local opt_parallel="$opt_jobs --keep-going"
5454
local opt_force='-f --force'

0 commit comments

Comments
 (0)