Skip to content

Commit

Permalink
Auto merge of #12586 - epage:positional, r=weihanglo
Browse files Browse the repository at this point in the history
fix(update): Remove references to -p in help

Missed these in #12545
  • Loading branch information
bors committed Aug 29, 2023
2 parents 94770a5 + 66f0b13 commit 87a14ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/bin/cargo/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ 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",
)
.value_name("PRECISE")
.requires("package-group"),
opt("precise", "Update [SPEC] to exactly PRECISE")
.value_name("PRECISE")
.requires("package-group"),
)
.arg_quiet()
.arg(
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/cargo_update/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87a14ed

Please sign in to comment.