mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 15:39:06 +01: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
@ -24,7 +24,7 @@ impl PerItemCommand for AliasCommand {
|
||||
let mut alias = Signature::build(&self.name);
|
||||
|
||||
for arg in &self.args {
|
||||
alias = alias.required(arg, SyntaxShape::Any, "");
|
||||
alias = alias.optional(arg, SyntaxShape::Any, "");
|
||||
}
|
||||
|
||||
alias
|
||||
|
Loading…
Reference in New Issue
Block a user