Skip to content
Myr

Update --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 a656fbe · Browse files · 1 file+7 added−5 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+7 added−5 removed

  • other:+7 added−5 removed

1 file+7 added−5 removed

modified:src/main.rs+7 added-5 removed
42 unmodified lines
43 .setting(AppSettings::ColoredHelp)44 .setting(AppSettings::DeriveDisplayOrder)45 .setting(AppSettings::UnifiedHelpMessage)46 .max_term_width(90)47 .about("A command-line benchmarking tool")47 .about("A command-line benchmarking tool.")48 .arg(49 Arg::with_name("command")50 .help("Command to benchmark")51 .required(true)
7 unmodified lines
59 .takes_value(true)60 .value_name("NUM")61 .help(62 "Perform NUM warmup runs before the actual benchmark. This can be used \63 to fill (disk) caches for I/O-heavy programs",63 to fill (disk) caches for I/O-heavy programs.",64 ),65 )66 .arg(67 Arg::with_name("min-runs")
1 unmodified line
69 .short("m")70 .takes_value(true)71 .value_name("NUM")72 .help(&format!(73 "Perform at least NUM runs for each command (default: {})",73 "Perform at least NUM runs for each command (default: {}).",74 options.min_runs75 )),76 )77 .arg(
3 unmodified lines
81 .takes_value(true)82 .value_name("CMD")83 .help(84 "Execute CMD before each timing run. This is useful for \85 clearing disk caches, for example",85 clearing disk caches, for example.",86 ),87 )88 .arg(89 Arg::with_name("ignore-failure")90 .long("ignore-failure")91 .short("i")92 .help("Ignore non-zero exit codes"),92 .help("Ignore non-zero exit codes."),93 )94 .help_message("Print this help message.")95 .version_message("Show version information.")96 .get_matches();9798 let str_to_u64 = |n| u64::from_str_radix(n, 10).ok();99
22 unmodified lines