forked from extern/nushell
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:
parent
454f560eaa
commit
3201c90647
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user