Skip to content

Commit

Permalink
Help text wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Mar 15, 2023
1 parent 8f20aed commit 2dfc919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
3 changes: 2 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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\
Expand Down

0 comments on commit 2dfc919

Please sign in to comment.