Skip to content

Commit 1f02563

Browse files
committed
Clarify the help text of --aggressive and --precise of cargo update
This commit makes following 2 changes: - Replace a parameter "<name>" with "SPEC". The former is an older name of the latter before 0d2a243. - Document that both options make sense when used with `-p`, which specifies SPEC.
1 parent 0cf6d24 commit 1f02563

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/bin/cargo/commands/update.rs

Lines changed: 8 additions & 2 deletions
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)