Extend to/from usage text to indicate subcommands (#1711)

Both to and from without a subcommand only print the helptext. Expand the usage line a bit, so a glance at `help commands` indicates the existance of the subcommands and mentions some common formats.

Ref a9968046ed
Ref #1708
This commit is contained in:
Jörn Zaefferer 2020-05-04 23:00:29 +02:00 committed by GitHub
parent 454f560eaa
commit 3201c90647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ impl WholeStreamCommand for From {
}
fn usage(&self) -> &str {
"Parse content (string or binary) as a table."
"Parse content (string or binary) as a table (input format based on subcommand, like csv, ini, json, toml)"
}
fn run(

View File

@ -15,7 +15,7 @@ impl WholeStreamCommand for To {
}
fn usage(&self) -> &str {
"Convert table into an output format."
"Convert table into an output format (based on subcommand, like csv, html, json, yaml)."
}
fn run(