From 8849d252183b17110d906ce08ac87cd979489f25 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Sat, 14 Oct 2023 17:47:42 +0200 Subject: [PATCH] Update rm help to be specific about the section. Signed-off-by: David Calavera --- src/bin/cargo/commands/remove.rs | 6 +++--- tests/testsuite/cargo_remove/help/stdout.log | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/cargo/commands/remove.rs b/src/bin/cargo/commands/remove.rs index 988c5fd21fe..d491ee40051 100644 --- a/src/bin/cargo/commands/remove.rs +++ b/src/bin/cargo/commands/remove.rs @@ -34,19 +34,19 @@ pub fn cli() -> clap::Command { .conflicts_with("build") .action(clap::ArgAction::SetTrue) .group("section") - .help("Remove as development dependency"), + .help("Remove from dev-dependencies"), clap::Arg::new("build") .long("build") .conflicts_with("dev") .action(clap::ArgAction::SetTrue) .group("section") - .help("Remove as build dependency"), + .help("Remove from build-dependencies"), clap::Arg::new("target") .long("target") .num_args(1) .value_name("TARGET") .value_parser(clap::builder::NonEmptyStringValueParser::new()) - .help("Remove as dependency from the given target platform"), + .help("Remove from target-dependencies"), ]) .arg_package("Package to remove from") .arg_manifest_path() diff --git a/tests/testsuite/cargo_remove/help/stdout.log b/tests/testsuite/cargo_remove/help/stdout.log index 8937fb9f391..47d2c87adae 100644 --- a/tests/testsuite/cargo_remove/help/stdout.log +++ b/tests/testsuite/cargo_remove/help/stdout.log @@ -15,9 +15,9 @@ Options: -h, --help Print help Section: - --dev Remove as development dependency - --build Remove as build dependency - --target Remove as dependency from the given target platform + --dev Remove from dev-dependencies + --build Remove from build-dependencies + --target Remove from target-dependencies Package Selection: -p, --package [] Package to remove from