Add hints to all export options
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Engineer-of-Efficiency · committed by David Peter · parent 30d2253 · Browse files · 1 file·+12 added−7 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+12 added−7 removed
- other:+12 added−7 removed
Provenance
- Commit
73f1e14- Tree
75ecd9f- Author
Engineer-of-Efficiency <100697850+Engineer-of-Efficiency@users.noreply.github.com>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
30d2253
1 file changed+12 added−7 removed
modified:src/cli.rs+12 added-7 removed
209 unmodified lines210 .takes_value(true)211 .value_name("UNIT")212 .possible_values(&["millisecond", "second"])213 .help("Set the time unit to be used. Possible values: millisecond, second.\214- This argument affects the command line output as well as AsciiDoc, Markdown and org-mode exports.\215- It does not affect JSON and CSV exports."),214+ This option affects the standard output as well as AsciiDoc, Markdown and org-mode exports.\215+ It does NOT affect JSON and CSV exports, which always use seconds."),216 )217 .arg(218 Arg::new("export-asciidoc")219 .long("export-asciidoc")220 .takes_value(true)221 .value_name("FILE")222- .help("Export the timing summary statistics as an AsciiDoc table to the given FILE."),222+ .help("Export the timing summary statistics as an AsciiDoc table to the given FILE.\223+ The output time unit is affected by the --time-unit option"),224 )225 .arg(226 Arg::new("export-csv")227 .long("export-csv")228 .takes_value(true)229 .value_name("FILE")230 .help("Export the timing summary statistics as CSV to the given FILE. If you need \230- the timing results for each individual run, use the JSON export format."),231+ the timing results for each individual run, use the JSON export format.\232+ The output time unit is NOT affected by the --time-unit option, instead it is always seconds"),233 )234 .arg(235 Arg::new("export-json")236 .long("export-json")237 .takes_value(true)238 .value_name("FILE")237- .help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE."),239+ .help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE.\240+ The output time unit is NOT affected by the --time-unit option, instead it is always seconds"),241 )242 .arg(243 Arg::new("export-markdown")244 .long("export-markdown")245 .takes_value(true)246 .value_name("FILE")244- .help("Export the timing summary statistics as a Markdown table to the given FILE."),247+ .help("Export the timing summary statistics as a Markdown table to the given FILE.\248+ The output time unit is affected by the --time-unit option"),249 )250 .arg(251 Arg::new("export-orgmode")252 .long("export-orgmode")253 .takes_value(true)254 .value_name("FILE")251- .help("Export the timing summary statistics as a Emacs org-mode table to the given FILE."),255+ .help("Export the timing summary statistics as a Emacs org-mode table to the given FILE.\256+ The output time unit is affected by the --time-unit option"),257 )258 .arg(259 Arg::new("show-output")260 .long("show-output")48 unmodified lines