mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Formatting of help text
This commit is contained in:
1 parent
09af0517bc
commit
5db7516dd9
1 file changed
+28
-18
+28
-18
@@ -274,16 +274,36 @@ fn build_command() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.value_name("WHERE")
|
||||
.help(
|
||||
"Control where the output of the benchmark is redirected. <WHERE> can be:\n\n\
|
||||
null: Redirect output to /dev/null (the default). \
|
||||
Note that some programs like 'grep' detect when standard output is /dev/null \
|
||||
and apply certain optimizations. To avoid that, consider using \
|
||||
'--output=pipe'.\n\n\
|
||||
pipe: Feed the output through a pipe before discarding it.\n\n\
|
||||
inherit: Don't redirect the output at all (same as '--show-output').\n\n\
|
||||
<FILE>: Write the output to the given file.",
|
||||
"Control where the output of the benchmark is redirected. Note \
|
||||
that some programs like 'grep' detect when standard output is \
|
||||
/dev/null and apply certain optimizations. To avoid that, consider \
|
||||
using '--output=pipe'.\n\
|
||||
\n\
|
||||
<WHERE> can be:\n\
|
||||
\n \
|
||||
null: Redirect output to /dev/null (the default).\n\
|
||||
\n \
|
||||
pipe: Feed the output through a pipe before discarding it.\n\
|
||||
\n \
|
||||
inherit: Don't redirect the output at all (same as '--show-output').\n\
|
||||
\n \
|
||||
<FILE>: Write the output to the given file.",
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("input")
|
||||
.long("input")
|
||||
.takes_value(true)
|
||||
.number_of_values(1)
|
||||
.value_name("WHERE")
|
||||
.help("Control where the input of the benchmark comes from.\n\
|
||||
\n\
|
||||
<WHERE> can be:\n\
|
||||
\n \
|
||||
null: Read from /dev/null (the default).\n\
|
||||
\n \
|
||||
<FILE>: Read the input from the given file."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("command-name")
|
||||
.long("command-name")
|
||||
@@ -312,16 +332,6 @@ fn build_command() -> Command {
|
||||
.hide(true)
|
||||
.help("Enable debug mode which does not actually run commands, but returns fake times when the command is 'sleep <time>'.")
|
||||
)
|
||||
.arg(
|
||||
Arg::new("input")
|
||||
.long("input")
|
||||
.takes_value(true)
|
||||
.number_of_values(1)
|
||||
.value_name("FROM")
|
||||
.help("Control where the input of the benchmark comes from. <FROM> can be: \
|
||||
null: Read from /edv/null (the default).
|
||||
<FILE>: Read the input from the given file"),
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user