Skip to content
Myr

cli.rs

This file

Path

src/cli.rs

386 lines · 17.1 KiB · Rust

Last changed by

Add --conclude option with testsJack O'Connorbefore adoptione13d0cb

History of this file

Take it

The walk stopped after 200 commits: lines older than 7fdb32d point at it.

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 1–2why, one step back
1use std::ffi::OsString;
2

chore: run fmtBenjamin Rombautbefore adoptionfcaa6d3

lines 3–4why, one step back
3use clap::{
4 builder::NonEmptyStringValueParser, crate_version, Arg, ArgAction, ArgMatches, Command,

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 5why, one step back
5 ValueHint,

chore: run fmtBenjamin Rombautbefore adoptionfcaa6d3

line 6why, one step back
6};

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 7–17why, one step back
7
8pub fn get_cli_arguments<'a, I, T>(args: I) -> ArgMatches9where10 I: IntoIterator<Item = T>,11 T: Into<OsString> + Clone + 'a,12{13 let command = build_command();14 command.get_matches_from(args)15}1617/// Build the clap command for parsing command line arguments

update to clap 4Benjamin Rombautbefore adoption8d38ef3

line 18why, one step back
18fn build_command() -> Command {

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 19–23why, one step back
19 Command::new("hyperfine")
20 .version(crate_version!())21 .next_line_help(true)22 .hide_possible_values(true)23 .about("A command-line benchmarking tool.")

use wrap_helpBenjamin Rombautbefore adoption17aca87

line 24why, one step back
24 .help_expected(true)

Use max. term width, not term widthDavid Peterbefore adoptionfbe9ca6

line 25why, one step back
25 .max_term_width(80)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 26–33why, one step back
26 .arg(
27 Arg::new("command")28 .help("The command to benchmark. This can be the name of an executable, a command \29 line like \"grep -i todo\" or a shell command like \"sleep 0.5 && echo test\". \30 The latter is only available if the shell is not explicitly disabled via \31 '--shell=none'. If multiple commands are given, hyperfine will show a \32 comparison of the respective runtimes.")33 .required(true)

update to clap 4Benjamin Rombautbefore adoption8d38ef3

line 34why, one step back
34 .action(ArgAction::Append)

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 35why, one step back
35 .value_hint(ValueHint::CommandString)

add clap deprecation noticesBenjamin Rombautbefore adoption5fcb716

line 36why, one step back
36 .value_parser(NonEmptyStringValueParser::new()),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 37–42why, one step back
37 )
38 .arg(39 Arg::new("warmup")40 .long("warmup")41 .short('w')42 .value_name("NUM")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 43why, one step back
43 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 44–52why, one step back
44 .help(
45 "Perform NUM warmup runs before the actual benchmark. This can be used \46 to fill (disk) caches for I/O-heavy programs.",47 ),48 )49 .arg(50 Arg::new("min-runs")51 .long("min-runs")52 .short('m')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 53why, one step back
53 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 54–60why, one step back
54 .value_name("NUM")
55 .help("Perform at least NUM runs for each command (default: 10)."),56 )57 .arg(58 Arg::new("max-runs")59 .long("max-runs")60 .short('M')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 61why, one step back
61 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 62–67why, one step back
62 .value_name("NUM")
63 .help("Perform at most NUM runs for each command. By default, there is no limit."),64 )65 .arg(66 Arg::new("runs")67 .long("runs")

Fix clippy suggestionsDavid Peterbefore adoptionc44aa1d

line 68why, one step back
68 .conflicts_with_all(["max-runs", "min-runs"])

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 69why, one step back
69 .short('r')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 70why, one step back
70 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 71–78why, one step back
71 .value_name("NUM")
72 .help("Perform exactly NUM runs for each command. If this option is not specified, \73 hyperfine automatically determines the number of runs."),74 )75 .arg(76 Arg::new("setup")77 .long("setup")78 .short('s')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 79why, one step back
79 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 80why, one step back
80 .value_name("CMD")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 81why, one step back
81 .value_hint(ValueHint::CommandString)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 82–92why, one step back
82 .help(
83 "Execute CMD before each set of timing runs. This is useful for \84 compiling your software with the provided parameters, or to do any \85 other work that should happen once before a series of benchmark runs, \86 not every time as would happen with the --prepare option."87 ),88 )89 .arg(90 Arg::new("prepare")91 .long("prepare")92 .short('p')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 93why, one step back
93 .action(ArgAction::Append)

update to clap 4Benjamin Rombautbefore adoption8d38ef3

line 94why, one step back
94 .num_args(1)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 95why, one step back
95 .value_name("CMD")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 96why, one step back
96 .value_hint(ValueHint::CommandString)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 97–105why, one step back
97 .help(
98 "Execute CMD before each timing run. This is useful for \99 clearing disk caches, for example.\nThe --prepare option can \100 be specified once for all commands or multiple times, once for \101 each command. In the latter case, each preparation command will \102 be run prior to the corresponding benchmark command.",103 ),104 )105 .arg(

Add --conclude option with testsJack O'Connorbefore adoptione13d0cb

lines 106–122why, one step back
106 Arg::new("conclude")
107 .long("conclude")108 .short('C')109 .action(ArgAction::Append)110 .num_args(1)111 .value_name("CMD")112 .value_hint(ValueHint::CommandString)113 .help(114 "Execute CMD after each timing run. This is useful for killing \115 long-running processes started (e.g. a web server started in --prepare), \116 for example.\nThe --conclude option can be specified once for all \117 commands or multiple times, once for each command. In the latter case, \118 each conclude command will be run after the corresponding benchmark \119 command.",120 ),121 )122 .arg(

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 123–125why, one step back
123 Arg::new("cleanup")
124 .long("cleanup")125 .short('c')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 126why, one step back
126 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 127why, one step back
127 .value_name("CMD")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 128why, one step back
128 .value_hint(ValueHint::CommandString)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 129–139why, one step back
129 .help(
130 "Execute CMD after the completion of all benchmarking \131 runs for each individual command to be benchmarked. \132 This is useful if the commands to be benchmarked produce \133 artifacts that need to be cleaned up."134 ),135 )136 .arg(137 Arg::new("parameter-scan")138 .long("parameter-scan")139 .short('P')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 140why, one step back
140 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 141why, one step back
141 .allow_hyphen_values(true)

Fix clippy suggestionsDavid Peterbefore adoptionc44aa1d

line 142why, one step back
142 .value_names(["VAR", "MIN", "MAX"])

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 143–157why, one step back
143 .help(
144 "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \145 string '{VAR}' in each command by the current parameter value.\n\n \146 Example: hyperfine -P threads 1 8 'make -j {threads}'\n\n\147 This performs benchmarks for 'make -j 1', 'make -j 2', …, 'make -j 8'.\n\n\148 To have the value increase following different patterns, use shell arithmetics.\n\n \149 Example: hyperfine -P size 0 3 'sleep $((2**{size}))'\n\n\150 This performs benchmarks with power of 2 increases: 'sleep 1', 'sleep 2', 'sleep 4', …\n\151 The exact syntax may vary depending on your shell and OS."152 ),153 )154 .arg(155 Arg::new("parameter-step-size")156 .long("parameter-step-size")157 .short('D')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 158why, one step back
158 .action(ArgAction::Set)

Fix clippy suggestionsDavid Peterbefore adoptionc44aa1d

line 159why, one step back
159 .value_names(["DELTA"])

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 160–171why, one step back
160 .requires("parameter-scan")
161 .help(162 "This argument requires --parameter-scan to be specified as well. \163 Traverse the range MIN..MAX in steps of DELTA.\n\n \164 Example: hyperfine -P delay 0.3 0.7 -D 0.2 'sleep {delay}'\n\n\165 This performs benchmarks for 'sleep 0.3', 'sleep 0.5' and 'sleep 0.7'.",166 ),167 )168 .arg(169 Arg::new("parameter-list")170 .long("parameter-list")171 .short('L')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 172why, one step back
172 .action(ArgAction::Append)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 173why, one step back
173 .allow_hyphen_values(true)

Fix clippy suggestionsDavid Peterbefore adoptionc44aa1d

lines 174–175why, one step back
174 .value_names(["VAR", "VALUES"])
175 .conflicts_with_all(["parameter-scan", "parameter-step-size"])

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 176–188why, one step back
176 .help(
177 "Perform benchmark runs for each value in the comma-separated list VALUES. \178 Replaces the string '{VAR}' in each command by the current parameter value\179 .\n\nExample: hyperfine -L compiler gcc,clang '{compiler} -O2 main.cpp'\n\n\180 This performs benchmarks for 'gcc -O2 main.cpp' and 'clang -O2 main.cpp'.\n\n\181 The option can be specified multiple times to run benchmarks for all \182 possible parameter combinations.\n"183 ),184 )185 .arg(186 Arg::new("shell")187 .long("shell")188 .short('S')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 189why, one step back
189 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 190–191why, one step back
190 .value_name("SHELL")
191 .overrides_with("shell")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 192why, one step back
192 .value_hint(ValueHint::CommandString)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 193–203why, one step back
193 .help("Set the shell to use for executing benchmarked commands. This can be the \
194 name or the path to the shell executable, or a full command line \195 like \"bash --norc\". It can also be set to \"default\" to explicitly select \196 the default shell on this platform. Finally, this can also be set to \197 \"none\" to disable the shell. In this case, commands will be executed \198 directly. They can still have arguments, but more complex things like \199 \"sleep 0.1; sleep 0.2\" are not possible without a shell.")200 )201 .arg(202 Arg::new("no-shell")203 .short('N')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 204why, one step back
204 .action(ArgAction::SetTrue)

Fix clippy suggestionsDavid Peterbefore adoptionc44aa1d

line 205why, one step back
205 .conflicts_with_all(["shell", "debug-mode"])

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 206–210why, one step back
206 .help("An alias for '--shell=none'.")
207 )208 .arg(209 Arg::new("ignore-failure")210 .long("ignore-failure")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 211why, one step back
211 .action(ArgAction::SetTrue)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 212–213why, one step back
212 .short('i')
213 .help("Ignore non-zero exit codes of the benchmarked programs."),

Add new --sort optionDavid Peterbefore adoptionac617c8

lines 214–245why, one step back
214 )
215 .arg(216 Arg::new("style")217 .long("style")218 .action(ArgAction::Set)219 .value_name("TYPE")220 .value_parser(["auto", "basic", "full", "nocolor", "color", "none"])221 .help(222 "Set output style type (default: auto). Set this to 'basic' to disable output \223 coloring and interactive elements. Set it to 'full' to enable all effects \224 even if no interactive terminal was detected. Set this to 'nocolor' to \225 keep the interactive output without any colors. Set this to 'color' to keep \226 the colors without any interactive output. Set this to 'none' to disable all \227 the output of the tool.",228 ),229 )230 .arg(231 Arg::new("sort")232 .long("sort")233 .action(ArgAction::Set)234 .value_name("METHOD")235 .value_parser(["auto", "command", "mean-time"])236 .default_value("auto")237 .hide_default_value(true)238 .help(239 "Specify the sort order of the speed comparison summary and the exported tables for \240 markup formats (Markdown, AsciiDoc, org-mode):\n \241 * 'auto' (default): the speed comparison will be ordered by time and\n \242 the markup tables will be ordered by command (input order).\n \243 * 'command': order benchmarks in the way they were specified\n \244 * 'mean-time': order benchmarks by mean runtime\n"245 ),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 246–250why, one step back
246 )
247 .arg(248 Arg::new("time-unit")249 .long("time-unit")250 .short('u')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 251why, one step back
251 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 252why, one step back
252 .value_name("UNIT")

Add support for microseconds, closes #684David Peterbefore adoption4564977

lines 253–254why, one step back
253 .value_parser(["microsecond", "millisecond", "second"])
254 .help("Set the time unit to be used. Possible values: microsecond, millisecond, second. \

Add spaces and shorten promptEngineer-of-Efficiencybefore adoptiond08c393

line 255why, one step back
255 If the option is not given, the time unit is determined automatically. \

Make --time-unit help text more generic.Engineer-of-Efficiencybefore adoptionedb29f4

line 256why, one step back
256 This option affects the standard output as well as all export formats except for CSV and JSON."),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 257–260why, one step back
257 )
258 .arg(259 Arg::new("export-asciidoc")260 .long("export-asciidoc")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 261why, one step back
261 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 262why, one step back
262 .value_name("FILE")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 263why, one step back
263 .value_hint(ValueHint::FilePath)

Add spaces and shorten promptEngineer-of-Efficiencybefore adoptiond08c393

line 264why, one step back
264 .help("Export the timing summary statistics as an AsciiDoc table to the given FILE. \

Add full stop after help messagesDavid Peterbefore adoptionde0ace4

line 265why, one step back
265 The output time unit can be changed using the --time-unit option."),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 266–269why, one step back
266 )
267 .arg(268 Arg::new("export-csv")269 .long("export-csv")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 270why, one step back
270 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 271why, one step back
271 .value_name("FILE")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 272why, one step back
272 .value_hint(ValueHint::FilePath)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 273why, one step back
273 .help("Export the timing summary statistics as CSV to the given FILE. If you need \

Add spaces and shorten promptEngineer-of-Efficiencybefore adoptiond08c393

line 274why, one step back
274 the timing results for each individual run, use the JSON export format. \

Add full stop after help messagesDavid Peterbefore adoptionde0ace4

line 275why, one step back
275 The output time unit is always seconds."),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 276–279why, one step back
276 )
277 .arg(278 Arg::new("export-json")279 .long("export-json")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 280why, one step back
280 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 281why, one step back
281 .value_name("FILE")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 282why, one step back
282 .value_hint(ValueHint::FilePath)

Add spaces and shorten promptEngineer-of-Efficiencybefore adoptiond08c393

line 283why, one step back
283 .help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE. \

Remove possible ambiguity Engineer-of-Efficiencybefore adoptiona217f3f

line 284why, one step back
284 The output time unit is always seconds"),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 285–288why, one step back
285 )
286 .arg(287 Arg::new("export-markdown")288 .long("export-markdown")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 289why, one step back
289 .action(ArgAction::Set)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 290why, one step back
290 .value_name("FILE")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 291why, one step back
291 .value_hint(ValueHint::FilePath)

Add spaces and shorten promptEngineer-of-Efficiencybefore adoptiond08c393

line 292why, one step back
292 .help("Export the timing summary statistics as a Markdown table to the given FILE. \

Add full stop after help messagesDavid Peterbefore adoptionde0ace4

line 293why, one step back
293 The output time unit can be changed using the --time-unit option."),

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 294–295why, one step back
294 )
295 .arg(

Export of Emacs org-mode table supportPhilipp Paulweberbefore adoption2443383

lines 296–297why, one step back
296 Arg::new("export-orgmode")
297 .long("export-orgmode")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 298why, one step back
298 .action(ArgAction::Set)

Export of Emacs org-mode table supportPhilipp Paulweberbefore adoption2443383

line 299why, one step back
299 .value_name("FILE")

Specify clap::ValueHint for argumentsAlbert Safinbefore adoption4ffe96b

line 300why, one step back
300 .value_hint(ValueHint::FilePath)

Spelling and grammar fixesVille Skyttäbefore adoption178bdaa

line 301why, one step back
301 .help("Export the timing summary statistics as an Emacs org-mode table to the given FILE. \

Add full stop after help messagesDavid Peterbefore adoptionde0ace4

line 302why, one step back
302 The output time unit can be changed using the --time-unit option."),

Export of Emacs org-mode table supportPhilipp Paulweberbefore adoption2443383

lines 303–304why, one step back
303 )
304 .arg(

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 305–306why, one step back
305 Arg::new("show-output")
306 .long("show-output")

add clap deprecation noticesBenjamin Rombautbefore adoption5fcb716

line 307why, one step back
307 .action(ArgAction::SetTrue)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 308–316why, one step back
308 .conflicts_with("style")
309 .help(310 "Print the stdout and stderr of the benchmark instead of suppressing it. \311 This will increase the time it takes for benchmarks to run, \312 so it should only be used for debugging purposes or \313 when trying to benchmark output speed.",314 ),315 )316 .arg(

Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c

lines 317–319why, one step back
317 Arg::new("output")
318 .long("output")319 .conflicts_with("show-output")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 320why, one step back
320 .action(ArgAction::Set)

Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c

lines 321–322why, one step back
321 .value_name("WHERE")
322 .help(

Formatting of help textDavid Peterbefore adoption5db7516

lines 323–336why, one step back
323 "Control where the output of the benchmark is redirected. Note \
324 that some programs like 'grep' detect when standard output is \325 /dev/null and apply certain optimizations. To avoid that, consider \326 using '--output=pipe'.\n\327 \n\328 <WHERE> can be:\n\329 \n \330 null: Redirect output to /dev/null (the default).\n\331 \n \332 pipe: Feed the output through a pipe before discarding it.\n\333 \n \334 inherit: Don't redirect the output at all (same as '--show-output').\n\335 \n \336 <FILE>: Write the output to the given file.",

Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c

lines 337–339why, one step back
337 ),
338 )339 .arg(

Formatting of help textDavid Peterbefore adoption5db7516

lines 340–341why, one step back
340 Arg::new("input")
341 .long("input")

Fix merge conflictsDavid Peterbefore adoption42e85f2

line 342why, one step back
342 .action(ArgAction::Set)

Help text wrappingDavid Peterbefore adoption2dfc919

line 343why, one step back
343 .num_args(1)

Formatting of help textDavid Peterbefore adoption5db7516

lines 344–353why, one step back
344 .value_name("WHERE")
345 .help("Control where the input of the benchmark comes from.\n\346 \n\347 <WHERE> can be:\n\348 \n \349 null: Read from /dev/null (the default).\n\350 \n \351 <FILE>: Read the input from the given file."),352 )353 .arg(

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 354–356why, one step back
354 Arg::new("command-name")
355 .long("command-name")356 .short('n')

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 357why, one step back
357 .action(ArgAction::Append)

update to clap 4Benjamin Rombautbefore adoption8d38ef3

line 358why, one step back
358 .num_args(1)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 359–362why, one step back
359 .value_name("NAME")
360 .help("Give a meaningful name to a command. This can be specified multiple times \361 if several commands are benchmarked."),362 )

Add new (hidden) --min-benchmarking-time optionDavid Peterbefore adoptiondffbdc3

lines 363–367why, one step back
363 // This option is hidden for now, as it is not yet clear yet if we want to 'stabilize' this,
364 // see discussion in https://github.com/sharkdp/hyperfine/issues/527365 .arg(366 Arg::new("min-benchmarking-time")367 .long("min-benchmarking-time")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 368why, one step back
368 .action(ArgAction::Set)

Add new (hidden) --min-benchmarking-time optionDavid Peterbefore adoptiondffbdc3

lines 369–373why, one step back
369 .hide(true)
370 .help("Set the minimum time (in seconds) to run benchmarks. Note that the number of \371 benchmark runs is additionally influenced by the `--min-runs`, `--max-runs`, and \372 `--runs` option.")373 )

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 374–376why, one step back
374 .arg(
375 Arg::new("debug-mode")376 .long("debug-mode")

use set and settrueBenjamin Rombautbefore adoption27ec9e2

line 377why, one step back
377 .action(ArgAction::SetTrue)

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

line 378why, one step back
378 .hide(true)

Add full stop after help messagesDavid Peterbefore adoptionde0ace4

line 379why, one step back
379 .help("Enable debug mode which does not actually run commands, but returns fake times when the command is 'sleep <time>'.")

Added --stdin-data argumentSteve Neasebefore adoptione38acdb

line 380why, one step back
380 )

Remove superfluous newlineDavid Peterbefore adoption7fdb32d

lines 381–386why, one step back
381}
382383#[test]384fn verify_app() {385 build_command().debug_assert();386}