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.
This commit is contained in:
Ian Manske 2024-03-18 19:37:53 +00:00 committed by GitHub
parent 127c4a9e63
commit 6e37ad0275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.",