From 3201c9064706401385df607b8d0556aee2c85056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 4 May 2020 23:00:29 +0200 Subject: [PATCH] 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 a9968046ede45827dfa1986f00059179e40b2c18 Ref #1708 --- crates/nu-cli/src/commands/from.rs | 2 +- crates/nu-cli/src/commands/to.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/commands/from.rs b/crates/nu-cli/src/commands/from.rs index 61dc92c9de..18e214cbd8 100644 --- a/crates/nu-cli/src/commands/from.rs +++ b/crates/nu-cli/src/commands/from.rs @@ -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( diff --git a/crates/nu-cli/src/commands/to.rs b/crates/nu-cli/src/commands/to.rs index 3df721e9c2..17a0cf693f 100644 --- a/crates/nu-cli/src/commands/to.rs +++ b/crates/nu-cli/src/commands/to.rs @@ -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(