From 1f02563dca8d2ca018eac49ef54b6c3a9a65d225 Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Thu, 31 Dec 2020 18:13:50 +0900 Subject: [PATCH] Clarify the help text of `--aggressive` and `--precise` of `cargo update` This commit makes following 2 changes: - Replace a parameter "" with "SPEC". The former is an older name of the latter before 0d2a2434f6f49cd671bd06e8cfc9f88bbbc67ff8. - Document that both options make sense when used with `-p`, which specifies SPEC. --- src/bin/cargo/commands/update.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/cargo/commands/update.rs b/src/bin/cargo/commands/update.rs index 771957169af..a635ba1cf48 100644 --- a/src/bin/cargo/commands/update.rs +++ b/src/bin/cargo/commands/update.rs @@ -11,10 +11,16 @@ pub fn cli() -> App { .arg_package_spec_simple("Package to update") .arg(opt( "aggressive", - "Force updating all dependencies of 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") }