Skip to content

Commit

Permalink
Clarify the help text of --aggressive and --precise of `cargo upd…
Browse files Browse the repository at this point in the history
…ate`

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.
  • Loading branch information
noritada committed Jan 1, 2021
1 parent 0cf6d24 commit 1f02563
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/bin/cargo/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ pub fn cli() -> App {
.arg_package_spec_simple("Package to update")
.arg(opt(
"aggressive",
"Force updating all dependencies of <name> as well",
"Force updating all dependencies of SPEC as well when used with -p",
))
.arg_dry_run("Don't actually write the lockfile")
.arg(opt("precise", "Update a single dependency to exactly PRECISE").value_name("PRECISE"))
.arg(
opt(
"precise",
"Update a single dependency to exactly PRECISE when used with -p",
)
.value_name("PRECISE"),
)
.arg_manifest_path()
.after_help("Run `cargo help update` for more detailed information.\n")
}
Expand Down

0 comments on commit 1f02563

Please sign in to comment.