forked from extern/nushell
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
@ -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 New Issue
Block a user