cli.rs (hyperfine-1.14.0) | : | cli.rs (hyperfine-1.15.0) | ||
---|---|---|---|---|
skipping to change at line 213 | skipping to change at line 213 | |||
.short('i') | .short('i') | |||
.help("Ignore non-zero exit codes of the benchmarked programs.") , | .help("Ignore non-zero exit codes of the benchmarked programs.") , | |||
) | ) | |||
.arg( | .arg( | |||
Arg::new("time-unit") | Arg::new("time-unit") | |||
.long("time-unit") | .long("time-unit") | |||
.short('u') | .short('u') | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("UNIT") | .value_name("UNIT") | |||
.possible_values(&["millisecond", "second"]) | .possible_values(&["millisecond", "second"]) | |||
.help("Set the time unit to be used. Possible values: millisecon | .help("Set the time unit to be used. Possible values: millisecon | |||
d, second."), | d, second. \ | |||
If the option is not given, the time unit is determined a | ||||
utomatically. \ | ||||
This option affects the standard output as well as all ex | ||||
port formats except for CSV and JSON."), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("export-asciidoc") | Arg::new("export-asciidoc") | |||
.long("export-asciidoc") | .long("export-asciidoc") | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("FILE") | .value_name("FILE") | |||
.help("Export the timing summary statistics as an AsciiDoc table | .help("Export the timing summary statistics as an AsciiDoc table | |||
to the given FILE."), | to the given FILE. \ | |||
The output time unit can be changed using the --time-unit | ||||
option."), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("export-csv") | Arg::new("export-csv") | |||
.long("export-csv") | .long("export-csv") | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("FILE") | .value_name("FILE") | |||
.help("Export the timing summary statistics as CSV to the given FILE. If you need \ | .help("Export the timing summary statistics as CSV to the given FILE. If you need \ | |||
the timing results for each individual run, use the JSON | the timing results for each individual run, use the JSON | |||
export format."), | export format. \ | |||
The output time unit is always seconds."), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("export-json") | Arg::new("export-json") | |||
.long("export-json") | .long("export-json") | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("FILE") | .value_name("FILE") | |||
.help("Export the timing summary statistics and timings of indiv | .help("Export the timing summary statistics and timings of indiv | |||
idual runs as JSON to the given FILE."), | idual runs as JSON to the given FILE. \ | |||
The output time unit is always seconds"), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("export-markdown") | Arg::new("export-markdown") | |||
.long("export-markdown") | .long("export-markdown") | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("FILE") | .value_name("FILE") | |||
.help("Export the timing summary statistics as a Markdown table | .help("Export the timing summary statistics as a Markdown table | |||
to the given FILE."), | to the given FILE. \ | |||
The output time unit can be changed using the --time-unit | ||||
option."), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("export-orgmode") | Arg::new("export-orgmode") | |||
.long("export-orgmode") | .long("export-orgmode") | |||
.takes_value(true) | .takes_value(true) | |||
.value_name("FILE") | .value_name("FILE") | |||
.help("Export the timing summary statistics as a Emacs org-mode | .help("Export the timing summary statistics as a Emacs org-mode | |||
table to the given FILE."), | table to the given FILE. \ | |||
The output time unit can be changed using the --time-unit | ||||
option."), | ||||
) | ) | |||
.arg( | .arg( | |||
Arg::new("show-output") | Arg::new("show-output") | |||
.long("show-output") | .long("show-output") | |||
.conflicts_with("style") | .conflicts_with("style") | |||
.help( | .help( | |||
"Print the stdout and stderr of the benchmark instead of sup pressing it. \ | "Print the stdout and stderr of the benchmark instead of sup pressing it. \ | |||
This will increase the time it takes for benchmarks to run, \ | This will increase the time it takes for benchmarks to run, \ | |||
so it should only be used for debugging purposes or \ | so it should only be used for debugging purposes or \ | |||
when trying to benchmark output speed.", | when trying to benchmark output speed.", | |||
skipping to change at line 290 | skipping to change at line 297 | |||
Arg::new("command-name") | Arg::new("command-name") | |||
.long("command-name") | .long("command-name") | |||
.short('n') | .short('n') | |||
.takes_value(true) | .takes_value(true) | |||
.multiple_occurrences(true) | .multiple_occurrences(true) | |||
.number_of_values(1) | .number_of_values(1) | |||
.value_name("NAME") | .value_name("NAME") | |||
.help("Give a meaningful name to a command. This can be specifie d multiple times \ | .help("Give a meaningful name to a command. This can be specifie d multiple times \ | |||
if several commands are benchmarked."), | if several commands are benchmarked."), | |||
) | ) | |||
// This option is hidden for now, as it is not yet clear yet if we want | ||||
to 'stabilize' this, | ||||
// see discussion in https://github.com/sharkdp/hyperfine/issues/527 | ||||
.arg( | ||||
Arg::new("min-benchmarking-time") | ||||
.long("min-benchmarking-time") | ||||
.takes_value(true) | ||||
.hide(true) | ||||
.help("Set the minimum time (in seconds) to run benchmarks. Note tha | ||||
t the number of \ | ||||
benchmark runs is additionally influenced by the `--min-runs` | ||||
, `--max-runs`, and \ | ||||
`--runs` option.") | ||||
) | ||||
.arg( | .arg( | |||
Arg::new("debug-mode") | Arg::new("debug-mode") | |||
.long("debug-mode") | .long("debug-mode") | |||
.hide(true) | .hide(true) | |||
.help("Enable debug mode which does not actually run commands, but r eturns fake times when the command is 'sleep <time>'") | .help("Enable debug mode which does not actually run commands, but r eturns fake times when the command is 'sleep <time>'.") | |||
) | ) | |||
} | } | |||
#[test] | #[test] | |||
fn verify_app() { | fn verify_app() { | |||
build_command().debug_assert(); | build_command().debug_assert(); | |||
} | } | |||
End of changes. 8 change blocks. | ||||
13 lines changed or deleted | 39 lines changed or added |