Auto merge of #12586 - epage:positional, r=weihanglo

fix(update): Remove references to -p in help

Missed these in #12545
This commit is contained in:
bors 2023-08-29 14:11:19 +00:00
commit 87a14ed1c6
2 changed files with 6 additions and 9 deletions

View File

@ -25,15 +25,12 @@ pub fn cli() -> Command {
.arg(
flag(
"aggressive",
"Force updating all dependencies of SPEC as well when used with -p",
"Force updating all dependencies of [SPEC]... as well",
)
.conflicts_with("precise"),
)
.arg(
opt(
"precise",
"Update a single dependency to exactly PRECISE when used with -p",
)
opt("precise", "Update [SPEC] to exactly PRECISE")
.value_name("PRECISE")
.requires("package-group"),
)

View File

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