Formatting of help text
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Peter · committed by David Peter · parent 09af051 · Browse files · 1 file·+28 added−18 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+28 added−18 removed
- other:+28 added−18 removed
Provenance
- Commit
5db7516- Tree
16db294- Author
David Peter <mail@david-peter.de>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
09af051
1 file changed+28 added−18 removed
modified:src/cli.rs+28 added-18 removed
272 unmodified lines273 .conflicts_with("show-output")274 .action(ArgAction::Set)275 .value_name("WHERE")276 .help(277- "Control where the output of the benchmark is redirected. <WHERE> can be:\n\n\278- null: Redirect output to /dev/null (the default). \279- Note that some programs like 'grep' detect when standard output is /dev/null \280- and apply certain optimizations. To avoid that, consider using \281- '--output=pipe'.\n\n\282- pipe: Feed the output through a pipe before discarding it.\n\n\283- inherit: Don't redirect the output at all (same as '--show-output').\n\n\284- <FILE>: Write the output to the given file.",277+ "Control where the output of the benchmark is redirected. Note \278+ that some programs like 'grep' detect when standard output is \279+ /dev/null and apply certain optimizations. To avoid that, consider \280+ using '--output=pipe'.\n\281+ \n\282+ <WHERE> can be:\n\283+ \n \284+ null: Redirect output to /dev/null (the default).\n\285+ \n \286+ pipe: Feed the output through a pipe before discarding it.\n\287+ \n \288+ inherit: Don't redirect the output at all (same as '--show-output').\n\289+ \n \290+ <FILE>: Write the output to the given file.",291 ),292 )293 .arg(294+ Arg::new("input")295+ .long("input")296+ .takes_value(true)297+ .number_of_values(1)298+ .value_name("WHERE")299+ .help("Control where the input of the benchmark comes from.\n\300+ \n\301+ <WHERE> can be:\n\302+ \n \303+ null: Read from /dev/null (the default).\n\304+ \n \305+ <FILE>: Read the input from the given file."),306+ )307+ .arg(308 Arg::new("command-name")309 .long("command-name")310 .short('n')311 .action(ArgAction::Append)19 unmodified lines331 .action(ArgAction::SetTrue)332 .hide(true)333 .help("Enable debug mode which does not actually run commands, but returns fake times when the command is 'sleep <time>'.")334 )315- .arg(316- Arg::new("input")317- .long("input")318- .takes_value(true)319- .number_of_values(1)320- .value_name("FROM")321- .help("Control where the input of the benchmark comes from. <FROM> can be: \322- null: Read from /edv/null (the default).323- <FILE>: Read the input from the given file"),324- )335 }336 337 #[test]338 fn verify_app() {2 unmodified lines