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:
Jonathan Turner 2020-04-20 16:04:40 +12:00 committed by GitHub
parent 522a828687
commit 6412bfd58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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