From 6412bfd58d56e0a1c21501f90dd9fcc84d3ebda3 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 20 Apr 2020 16:04:40 +1200 Subject: [PATCH] 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 --- crates/nu-cli/src/commands/run_alias.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cli/src/commands/run_alias.rs b/crates/nu-cli/src/commands/run_alias.rs index e0fbb4916..3320d5cda 100644 --- a/crates/nu-cli/src/commands/run_alias.rs +++ b/crates/nu-cli/src/commands/run_alias.rs @@ -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