mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 03:02:45 +00:00
Enhance help texts of position args
This commit is contained in:
parent
eff8d693b9
commit
e59ae78bd6
|
@ -12,6 +12,7 @@ pub fn cli() -> Command {
|
|||
.arg_quiet()
|
||||
.arg(
|
||||
Arg::new("args")
|
||||
.help("Arguments for the binary or example to run")
|
||||
.value_parser(value_parser!(std::ffi::OsString))
|
||||
.num_args(0..)
|
||||
.trailing_var_arg(true),
|
||||
|
|
|
@ -12,7 +12,7 @@ pub fn cli() -> Command {
|
|||
.arg(
|
||||
Arg::new("args")
|
||||
.num_args(0..)
|
||||
.help("Rustc flags")
|
||||
.help("Extra rustc flags")
|
||||
.trailing_var_arg(true),
|
||||
)
|
||||
.arg_package("Package to build")
|
||||
|
|
|
@ -6,7 +6,12 @@ pub fn cli() -> Command {
|
|||
subcommand("rustdoc")
|
||||
.about("Build a package's documentation, using specified custom flags.")
|
||||
.arg_quiet()
|
||||
.arg(Arg::new("args").num_args(0..).trailing_var_arg(true))
|
||||
.arg(
|
||||
Arg::new("args")
|
||||
.help("Extra rustdoc flags")
|
||||
.num_args(0..)
|
||||
.trailing_var_arg(true),
|
||||
)
|
||||
.arg(flag(
|
||||
"open",
|
||||
"Opens the docs in a browser after the operation",
|
||||
|
|
Loading…
Reference in a new issue