mirror of
https://github.com/danbulant/nushell
synced 2026-05-24 12:35:59 +00:00
Move alias arguments to optional arguments (#1612)
This will allow people to use more variables to capture more, if necessary, without having to implement required/optional/rest
This commit is contained in:
parent
522a828687
commit
6412bfd58d
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ impl PerItemCommand for AliasCommand {
|
||||||
let mut alias = Signature::build(&self.name);
|
let mut alias = Signature::build(&self.name);
|
||||||
|
|
||||||
for arg in &self.args {
|
for arg in &self.args {
|
||||||
alias = alias.required(arg, SyntaxShape::Any, "");
|
alias = alias.optional(arg, SyntaxShape::Any, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
alias
|
alias
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue