fix(update): Group -p related flags

This commit is contained in:
Ed Page 2023-07-31 21:21:02 -05:00
parent 57762917fb
commit 4fd0c3c46c
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ pub fn cli() -> Command {
)
.conflicts_with("precise"),
)
.arg_dry_run("Don't actually write the lockfile")
.arg(
opt(
"precise",
@ -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")
}

View File

@ -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