mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
Help text wrapping
This commit is contained in:
1 parent
8f20aed2da
commit
2dfc919227
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ once_cell = "1.17"
|
|||||||
nix = { version = "0.26.2", features = ["zerocopy"] }
|
nix = { version = "0.26.2", features = ["zerocopy"] }
|
||||||
|
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
version = "4.0.18"
|
version = "4"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["suggestions", "color", "wrap_help", "cargo", "help", "usage", "error-context"]
|
features = ["suggestions", "color", "wrap_help", "cargo", "help", "usage", "error-context"]
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -21,6 +21,7 @@ fn build_command() -> Command {
|
|||||||
.hide_possible_values(true)
|
.hide_possible_values(true)
|
||||||
.about("A command-line benchmarking tool.")
|
.about("A command-line benchmarking tool.")
|
||||||
.help_expected(true)
|
.help_expected(true)
|
||||||
|
.term_width(100)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("command")
|
Arg::new("command")
|
||||||
.help("The command to benchmark. This can be the name of an executable, a 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")
|
Arg::new("input")
|
||||||
.long("input")
|
.long("input")
|
||||||
.action(ArgAction::Set)
|
.action(ArgAction::Set)
|
||||||
.number_of_values(1)
|
.num_args(1)
|
||||||
.value_name("WHERE")
|
.value_name("WHERE")
|
||||||
.help("Control where the input of the benchmark comes from.\n\
|
.help("Control where the input of the benchmark comes from.\n\
|
||||||
\n\
|
\n\
|
||||||
|
|||||||
Reference in new issue
Block a user