Clean up the --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 d677901 · Browse files · 1 file·+16 added−14 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+16 added−14 removed
- other:+16 added−14 removed
Provenance
- Commit
be09ae4- Tree
7aa2ff8- Author
sharkdp <davidpeter@web.de>- Committer
sharkdp <davidpeter@web.de>- Parent
d677901
1 file changed+16 added−14 removed
modified:src/main.rs+16 added-14 removed
98 unmodified lines99 .version(crate_version!())100 .setting(clap_color_setting)101 .setting(AppSettings::DeriveDisplayOrder)102 .setting(AppSettings::UnifiedHelpMessage)103+ .setting(AppSettings::NextLineHelp)104+ .setting(AppSettings::HidePossibleValuesInHelp)105 .max_term_width(90)106 .about("A command-line benchmarking tool.")107 .arg(108 Arg::with_name("command")35 unmodified lines144 clearing disk caches, for example.",145 ),146 )147 .arg(148+ Arg::with_name("parameter-scan")149+ .long("parameter-scan")150+ .short("P")151+ .help(152+ "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \153+ string '{VAR}' in each command by the current parameter value.",154+ )155+ .takes_value(true)156+ .allow_hyphen_values(true)157+ .value_names(&["VAR", "MIN", "MAX"]),158+ )159+ .arg(160 Arg::with_name("style")161 .long("style")162 .short("s")163 .takes_value(true)1 unmodified line165 .possible_values(&["auto", "basic", "full", "nocolor"])166 .help(167 "Set output style type (default: auto). Set this to 'basic' to disable output \168 coloring and interactive elements. Set it to 'full' to enable all effects \155- even if no interactive terminal was detected. Setting to 'nocolor' maintains \156- all advanced output, but uses no colorization.",169+ even if no interactive terminal was detected. Set this to 'nocolor' to \170+ keep the interactive output without any colors.",171 ),172 )173 .arg(174 Arg::with_name("ignore-failure")1 unmodified line176 .short("i")177 .help("Ignore non-zero exit codes."),178 )179 .arg(166- Arg::with_name("parameter-scan")167- .long("parameter-scan")168- .short("P")169- .help(170- "Perform benchmark runs for each value in the range MIN..MAX. Replaces the \171- string '{VAR}' in each command by the current parameter value.",172- )173- .takes_value(true)174- .allow_hyphen_values(true)175- .value_names(&["VAR", "MIN", "MAX"]),176- )177- .arg(180 Arg::with_name("export-csv")181 .long("export-csv")182 .takes_value(true)183 .value_name("FILE")105 unmodified lines