Fix help text for alias command. (#1742)

* Fix help text for alias command.

* Rust fmt
This commit is contained in:
chrisr 2020-05-09 18:16:14 +01:00 committed by GitHub
parent f93ff9ec33
commit 55374ee54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(