mirror of
https://github.com/nushell/nushell
synced 2024-12-25 20:43:09 +00:00
Fix help text for alias command. (#1742)
* Fix help text for alias command. * Rust fmt
This commit is contained in:
parent
f93ff9ec33
commit
55374ee54f
1 changed files with 6 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue