Skip to content

Commit 6477083

Browse files
committed
Auto merge of #9031 - noritada:update-update-descriptions, r=alexcrichton
Clarify the help text of `--aggressive` and `--precise` of `update` In the help text, `--aggressive` is described as follows: ``` --aggressive Force updating all dependencies of <name> as well ``` But `<name>` is not documented anywhere and it seems to be an older parameter name of `SPEC` before 0d2a243. This PR updates that parameter name and also clarifies in the help text that `--aggressive` and `--precise` make sense when used with `-p`, which specifies `SPEC`.
2 parents 9ced883 + 1f02563 commit 6477083

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/bin/cargo/commands/update.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ pub fn cli() -> App {
1111
.arg_package_spec_simple("Package to update")
1212
.arg(opt(
1313
"aggressive",
14-
"Force updating all dependencies of <name> as well",
14+
"Force updating all dependencies of SPEC as well when used with -p",
1515
))
1616
.arg_dry_run("Don't actually write the lockfile")
17-
.arg(opt("precise", "Update a single dependency to exactly PRECISE").value_name("PRECISE"))
17+
.arg(
18+
opt(
19+
"precise",
20+
"Update a single dependency to exactly PRECISE when used with -p",
21+
)
22+
.value_name("PRECISE"),
23+
)
1824
.arg_manifest_path()
1925
.after_help("Run `cargo help update` for more detailed information.\n")
2026
}

0 commit comments

Comments
 (0)