Skip to content
Myr

Improve --help text

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 68f5eb6 · Browse files · 1 file+14 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−8 removed

  • other:+14 added−8 removed

1 file+14 added−8 removed

modified:src/hyperfine/app.rs+14 added-8 removed
58 unmodified lines
59 .long("max-runs")60 .short("M")61 .takes_value(true)62 .value_name("NUM")63 .help("Perform at most NUM runs for each command."),63 .help("Perform at most NUM runs for each command. By default, there is no limit."),64 )65 .arg(66 Arg::with_name("runs")67 .long("runs")68 .conflicts_with_all(&["max-runs", "min-runs"])69 .short("r")70 .takes_value(true)71 .value_name("NUM")72 .help("Perform exactly NUM runs for each command."),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::with_name("prepare")77 .long("prepare")
31 unmodified lines
109 .allow_hyphen_values(true)110 .value_names(&["VAR", "MIN", "MAX"])111 .help(112 "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \112 string '{VAR}' in each command by the current parameter value.",113 string '{VAR}' in each command by the current parameter value.\n\n \114 Example: hyperfine -P threads 1 8 'make -j {threads}'\n\n\115 This performs benchmarks for 'make -j 1', 'make -j 2', …, 'make -j 8'.",116 ),117 )118 .arg(119 Arg::with_name("parameter-step-size")
3 unmodified lines
123 .value_names(&["DELTA"])124 .requires("parameter-scan")125 .help(126 "This argument requires --parameter-scan to be specified as well. \124 Traverse the range MIN..MAX in steps of DELTA.",127 Traverse the range MIN..MAX in steps of DELTA.\n\n \128 Example: hyperfine -P delay 0.3 0.7 -D 0.2 'sleep {delay}'\n\n\129 This performs benchmarks for 'sleep 0.3', 'sleep 0.5' and 'sleep 0.7'.",130 ),131 )132 .arg(133 Arg::with_name("style")
16 unmodified lines
150 .short("S")151 .takes_value(true)152 .value_name("SHELL")153 .overrides_with("shell")149 .help("Set the shell to use (default: sh) for executing benchmarked commands."),154 .help("Set the shell to use for executing benchmarked commands."),155 )156 .arg(157 Arg::with_name("ignore-failure")158 .long("ignore-failure")159 .short("i")155 .help("Ignore non-zero exit codes."),160 .help("Ignore non-zero exit codes of the benchmarked programs."),161 )162 .arg(163 Arg::with_name("time-unit")164 .long("time-unit")165 .short("u")166 .takes_value(true)167 .value_name("UNIT")168 .possible_values(&["millisecond", "second"])164 .help("Set the time unit used. Possible values: millisecond, second."),169 .help("Set the time unit to be used. Possible values: millisecond, second."),170 )171 .arg(172 Arg::with_name("export-asciidoc")173 .long("export-asciidoc")
5 unmodified lines
179 Arg::with_name("export-csv")180 .long("export-csv")181 .takes_value(true)182 .value_name("FILE")178 .help("Export the timing summary statistics as CSV to the given FILE."),183 .help("Export the timing summary statistics as CSV to the given FILE. If you need \184 the timing results for each individual run, use the JSON export format."),185 )186 .arg(187 Arg::with_name("export-json")188 .long("export-json")
25 unmodified lines