Change to export-markdown long opt, update help text

This commit is contained in:
Steve Pentland authored and David Peter committed 2018-03-20 23:19:06 +01:00
1 parent 5602c17bef
commit 5fb66db100
1 file changed
+4 -4
+4 -4
View File
@@ -153,11 +153,11 @@ fn main() {
.help("Export the timing results as JSON to the given FILE."),
)
.arg(
Arg::with_name("export-md")
.long("export-md")
Arg::with_name("export-markdown")
.long("export-markdown")
.takes_value(true)
.value_name("FILE")
.help("Export the timing results to a markdown table in the given file"),
.help("Export the timing results as a Markdown table to the given FILE."),
)
.help_message("Print this help message.")
.version_message("Show version information.")
@@ -195,7 +195,7 @@ fn main() {
if let Some(filename) = matches.value_of("export-csv") {
export_manager.add_exporter(ExportType::Csv, filename);
}
if let Some(filename) = matches.value_of("export-md") {
if let Some(filename) = matches.value_of("export-markdown") {
export_manager.add_exporter(ExportType::Markdown, filename);
}