Skip to content

Commit

Permalink
Auto merge of #9031 - noritada:update-update-descriptions, r=alexcric…
Browse files Browse the repository at this point in the history
…hton

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`.
  • Loading branch information
bors committed Jan 4, 2021
2 parents 9ced883 + 1f02563 commit 6477083
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 6477083

Please sign in to comment.