From 55374ee54f7f3b874bda0e11ed385bf193e14ddb Mon Sep 17 00:00:00 2001 From: chrisr Date: Sat, 9 May 2020 18:16:14 +0100 Subject: [PATCH] Fix help text for alias command. (#1742) * Fix help text for alias command. * Rust fmt --- crates/nu-cli/src/commands/alias.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/commands/alias.rs b/crates/nu-cli/src/commands/alias.rs index 0bf797f75f..98f322abb5 100644 --- a/crates/nu-cli/src/commands/alias.rs +++ b/crates/nu-cli/src/commands/alias.rs @@ -23,11 +23,15 @@ impl WholeStreamCommand for Alias { Signature::build("alias") .required("name", SyntaxShape::String, "the name of the alias") .required("args", SyntaxShape::Table, "the arguments to the alias") - .required("block", SyntaxShape::Block, "the block to run on each row") + .required( + "block", + SyntaxShape::Block, + "the block to run as the body of the alias", + ) } fn usage(&self) -> &str { - "Run a block on each row of the table." + "Define a shortcut for another command." } fn run(