Skip to content

Commit 4fd0c3c

Browse files
committed
fix(update): Group -p related flags
1 parent 5776291 commit 4fd0c3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/cargo/commands/update.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub fn cli() -> Command {
1616
)
1717
.conflicts_with("precise"),
1818
)
19-
.arg_dry_run("Don't actually write the lockfile")
2019
.arg(
2120
opt(
2221
"precise",
@@ -26,6 +25,7 @@ pub fn cli() -> Command {
2625
.requires("package"),
2726
)
2827
.arg_manifest_path()
28+
.arg_dry_run("Don't actually write the lockfile")
2929
.after_help("Run `cargo help update` for more detailed information.\n")
3030
}
3131

tests/testsuite/cargo_update/help/stdout.log

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Options:
77
-w, --workspace Only update the workspace packages
88
-p, --package [<SPEC>] Package to update
99
--aggressive Force updating all dependencies of SPEC as well when used with -p
10-
--dry-run Don't actually write the lockfile
1110
--precise <PRECISE> Update a single dependency to exactly PRECISE when used with -p
1211
--manifest-path <PATH> Path to Cargo.toml
12+
--dry-run Don't actually write the lockfile
1313
-h, --help Print help
1414
-v, --verbose... Use verbose output (-vv very verbose/build.rs output)
1515
--color <WHEN> Coloring: auto, always, never

0 commit comments

Comments
 (0)