diff --git a/crates/nu-macros/src/lib.rs b/crates/nu-macros/src/lib.rs index 0c323f9aa1..4f9b7552dd 100644 --- a/crates/nu-macros/src/lib.rs +++ b/crates/nu-macros/src/lib.rs @@ -17,9 +17,9 @@ macro_rules! signature { #[macro_export] macro_rules! positional { ($ident:tt, $name:tt (optional $shape:tt) - $desc:tt) => { - let $ident = $ident.required(stringify!($name), SyntaxShape::$shape, $desc); - }; - ($ident:tt, $name:tt ($shape:tt)- $desc:tt) => { let $ident = $ident.optional(stringify!($name), SyntaxShape::$shape, $desc); }; + ($ident:tt, $name:tt ($shape:tt)- $desc:tt) => { + let $ident = $ident.required(stringify!($name), SyntaxShape::$shape, $desc); + }; }