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

View File

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