Skip to content

Commit 87a14ed

Browse files
committed
Auto merge of #12586 - epage:positional, r=weihanglo
fix(update): Remove references to -p in help Missed these in #12545
2 parents 94770a5 + 66f0b13 commit 87a14ed

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/bin/cargo/commands/update.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ pub fn cli() -> Command {
2525
.arg(
2626
flag(
2727
"aggressive",
28-
"Force updating all dependencies of SPEC as well when used with -p",
28+
"Force updating all dependencies of [SPEC]... as well",
2929
)
3030
.conflicts_with("precise"),
3131
)
3232
.arg(
33-
opt(
34-
"precise",
35-
"Update a single dependency to exactly PRECISE when used with -p",
36-
)
37-
.value_name("PRECISE")
38-
.requires("package-group"),
33+
opt("precise", "Update [SPEC] to exactly PRECISE")
34+
.value_name("PRECISE")
35+
.requires("package-group"),
3936
)
4037
.arg_quiet()
4138
.arg(

tests/testsuite/cargo_update/help/stdout.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Usage: cargo[EXE] update [OPTIONS] [SPEC]...
44

55
Options:
66
--dry-run Don't actually write the lockfile
7-
--aggressive Force updating all dependencies of SPEC as well when used with -p
8-
--precise <PRECISE> Update a single dependency to exactly PRECISE when used with -p
7+
--aggressive Force updating all dependencies of [SPEC]... as well
8+
--precise <PRECISE> Update [SPEC] to exactly PRECISE
99
-q, --quiet Do not print cargo log messages
1010
-v, --verbose... Use verbose output (-vv very verbose/build.rs output)
1111
--color <WHEN> Coloring: auto, always, never

0 commit comments

Comments
 (0)