From 08d1be79fc255beae63950f841e97e5df8d77ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 25 Aug 2020 23:43:41 +0200 Subject: [PATCH] Add some cross-references to usage texts (#2417) --- crates/nu-cli/src/commands/drop.rs | 4 ++-- crates/nu-cli/src/commands/reject.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-cli/src/commands/drop.rs b/crates/nu-cli/src/commands/drop.rs index 2d38beafc1..7820419eef 100644 --- a/crates/nu-cli/src/commands/drop.rs +++ b/crates/nu-cli/src/commands/drop.rs @@ -22,12 +22,12 @@ impl WholeStreamCommand for Drop { Signature::build("drop").optional( "rows", SyntaxShape::Number, - "starting from the back, the number of rows to drop", + "starting from the back, the number of rows to remove", ) } fn usage(&self) -> &str { - "Drop the last number of rows." + "Remove the last number of rows. If you want to remove columns, try 'reject'." } async fn run( diff --git a/crates/nu-cli/src/commands/reject.rs b/crates/nu-cli/src/commands/reject.rs index 1498b382fd..d0d1031dee 100644 --- a/crates/nu-cli/src/commands/reject.rs +++ b/crates/nu-cli/src/commands/reject.rs @@ -23,7 +23,7 @@ impl WholeStreamCommand for Reject { } fn usage(&self) -> &str { - "Remove the given columns from the table." + "Remove the given columns from the table. If you want to remove rows, try 'drop'." } async fn run(