Help text wrapping

This commit is contained in:
David Peter 2023-03-15 10:05:57 +01:00
parent e8c2c9312e
commit 04e2f6378e
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@ once_cell = "1.17"
nix = { version = "0.26.2", features = ["zerocopy"] }
[dependencies.clap]
version = "4.0.18"
version = "4"
default-features = false
features = ["suggestions", "color", "wrap_help", "cargo", "help", "usage", "error-context"]

View File

@ -21,6 +21,7 @@ fn build_command() -> Command {
.hide_possible_values(true)
.about("A command-line benchmarking tool.")
.help_expected(true)
.term_width(100)
.arg(
Arg::new("command")
.help("The command to benchmark. This can be the name of an executable, a command \
@ -294,7 +295,7 @@ fn build_command() -> Command {
Arg::new("input")
.long("input")
.action(ArgAction::Set)
.number_of_values(1)
.num_args(1)
.value_name("WHERE")
.help("Control where the input of the benchmark comes from.\n\
\n\