diff --git a/crates/nu-command/src/deprecated/let_env.rs b/crates/nu-command/src/deprecated/let_env.rs index 657e1f006..36192b592 100644 --- a/crates/nu-command/src/deprecated/let_env.rs +++ b/crates/nu-command/src/deprecated/let_env.rs @@ -14,8 +14,8 @@ impl Command for LetEnvDeprecated { Signature::build(self.name()) .input_output_types(vec![(Type::Nothing, Type::Nothing)]) .allow_variants_without_examples(true) - .required("var_name", SyntaxShape::String, "variable name") - .required( + .optional("var_name", SyntaxShape::String, "variable name") + .optional( "initial_value", SyntaxShape::Keyword(b"=".to_vec(), Box::new(SyntaxShape::MathExpression)), "equals sign followed by value",