diff --git a/src/bin/cargo/commands/remove.rs b/src/bin/cargo/commands/remove.rs index 988c5fd21fe6..d491ee400512 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 8937fb9f391e..2590da0d1528 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 development dependencies + --build Remove build dependencies + --target Remove dependencies from the given target platform Package Selection: -p, --package [] Package to remove from