Skip to content

Commit

Permalink
fix(update): Group -p related flags
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 1, 2023
1 parent 5776291 commit 4fd0c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub fn cli() -> Command {
)
.conflicts_with("precise"),
)
.arg_dry_run("Don't actually write the lockfile")
.arg(
opt(
"precise",
Expand All @@ -26,6 +25,7 @@ pub fn cli() -> Command {
.requires("package"),
)
.arg_manifest_path()
.arg_dry_run("Don't actually write the lockfile")
.after_help("Run `cargo help update` for more detailed information.\n")
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_update/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Options:
-w, --workspace Only update the workspace packages
-p, --package [<SPEC>] Package to update
--aggressive Force updating all dependencies of SPEC as well when used with -p
--dry-run Don't actually write the lockfile
--precise <PRECISE> Update a single dependency to exactly PRECISE when used with -p
--manifest-path <PATH> Path to Cargo.toml
--dry-run Don't actually write the lockfile
-h, --help Print help
-v, --verbose... Use verbose output (-vv very verbose/build.rs output)
--color <WHEN> Coloring: auto, always, never
Expand Down

0 comments on commit 4fd0c3c

Please sign in to comment.