From 6e37ad0275cb23c5a8a933ba6a46a45d70f74910 Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Mon, 18 Mar 2024 19:37:53 +0000 Subject: [PATCH] Use rest argument in `export use` to match `use` (#12228) # Description Fixes #12057 where it was pointed out that `export use` takes an **optional** `members` positional argument whereas `use` takes a **rest** `members` argument. --- crates/nu-cmd-lang/src/core_commands/export_use.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cmd-lang/src/core_commands/export_use.rs b/crates/nu-cmd-lang/src/core_commands/export_use.rs index a08b21e81b..c1904e819a 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_use.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_use.rs @@ -20,7 +20,7 @@ impl Command for ExportUse { Signature::build("export use") .input_output_types(vec![(Type::Nothing, Type::Nothing)]) .required("module", SyntaxShape::String, "Module or module file.") - .optional( + .rest( "members", SyntaxShape::Any, "Which members of the module to import.",