Add hints to all export options

This commit is contained in:
Engineer-of-Efficiency authored and David Peter committed 2022-07-01 13:57:01 +02:00
1 parent 30d2253351
commit 73f1e14390
1 file changed
+12 -7
+12 -7
View File
@@ -211,15 +211,16 @@ fn build_command() -> Command<'static> {
.value_name("UNIT")
.possible_values(&["millisecond", "second"])
.help("Set the time unit to be used. Possible values: millisecond, second.\
This argument affects the command line output as well as AsciiDoc, Markdown and org-mode exports.\
It does not affect JSON and CSV exports."),
This option affects the standard output as well as AsciiDoc, Markdown and org-mode exports.\
It does NOT affect JSON and CSV exports, which always use seconds."),
)
.arg(
Arg::new("export-asciidoc")
.long("export-asciidoc")
.takes_value(true)
.value_name("FILE")
.help("Export the timing summary statistics as an AsciiDoc table to the given FILE."),
.help("Export the timing summary statistics as an AsciiDoc table to the given FILE.\
The output time unit is affected by the --time-unit option"),
)
.arg(
Arg::new("export-csv")
@@ -227,28 +228,32 @@ fn build_command() -> Command<'static> {
.takes_value(true)
.value_name("FILE")
.help("Export the timing summary statistics as CSV to the given FILE. If you need \
the timing results for each individual run, use the JSON export format."),
the timing results for each individual run, use the JSON export format.\
The output time unit is NOT affected by the --time-unit option, instead it is always seconds"),
)
.arg(
Arg::new("export-json")
.long("export-json")
.takes_value(true)
.value_name("FILE")
.help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE."),
.help("Export the timing summary statistics and timings of individual runs as JSON to the given FILE.\
The output time unit is NOT affected by the --time-unit option, instead it is always seconds"),
)
.arg(
Arg::new("export-markdown")
.long("export-markdown")
.takes_value(true)
.value_name("FILE")
.help("Export the timing summary statistics as a Markdown table to the given FILE."),
.help("Export the timing summary statistics as a Markdown table to the given FILE.\
The output time unit is affected by the --time-unit option"),
)
.arg(
Arg::new("export-orgmode")
.long("export-orgmode")
.takes_value(true)
.value_name("FILE")
.help("Export the timing summary statistics as a Emacs org-mode table to the given FILE."),
.help("Export the timing summary statistics as a Emacs org-mode table to the given FILE.\
The output time unit is affected by the --time-unit option"),
)
.arg(
Arg::new("show-output")