mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Update rm help to be specific about the section.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
87f4b1ba07
commit
8849d25218
@ -34,19 +34,19 @@ pub fn cli() -> clap::Command {
|
|||||||
.conflicts_with("build")
|
.conflicts_with("build")
|
||||||
.action(clap::ArgAction::SetTrue)
|
.action(clap::ArgAction::SetTrue)
|
||||||
.group("section")
|
.group("section")
|
||||||
.help("Remove as development dependency"),
|
.help("Remove from dev-dependencies"),
|
||||||
clap::Arg::new("build")
|
clap::Arg::new("build")
|
||||||
.long("build")
|
.long("build")
|
||||||
.conflicts_with("dev")
|
.conflicts_with("dev")
|
||||||
.action(clap::ArgAction::SetTrue)
|
.action(clap::ArgAction::SetTrue)
|
||||||
.group("section")
|
.group("section")
|
||||||
.help("Remove as build dependency"),
|
.help("Remove from build-dependencies"),
|
||||||
clap::Arg::new("target")
|
clap::Arg::new("target")
|
||||||
.long("target")
|
.long("target")
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.value_name("TARGET")
|
.value_name("TARGET")
|
||||||
.value_parser(clap::builder::NonEmptyStringValueParser::new())
|
.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_package("Package to remove from")
|
||||||
.arg_manifest_path()
|
.arg_manifest_path()
|
||||||
|
@ -15,9 +15,9 @@ Options:
|
|||||||
-h, --help Print help
|
-h, --help Print help
|
||||||
|
|
||||||
Section:
|
Section:
|
||||||
--dev Remove as development dependency
|
--dev Remove from dev-dependencies
|
||||||
--build Remove as build dependency
|
--build Remove from build-dependencies
|
||||||
--target <TARGET> Remove as dependency from the given target platform
|
--target <TARGET> Remove from target-dependencies
|
||||||
|
|
||||||
Package Selection:
|
Package Selection:
|
||||||
-p, --package [<SPEC>] Package to remove from
|
-p, --package [<SPEC>] Package to remove from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user