mirror of
https://github.com/nushell/nushell.git
synced 2025-02-18 11:31:14 +01:00
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:
parent
127c4a9e63
commit
6e37ad0275
@ -20,7 +20,7 @@ impl Command for ExportUse {
|
|||||||
Signature::build("export use")
|
Signature::build("export use")
|
||||||
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
|
.input_output_types(vec![(Type::Nothing, Type::Nothing)])
|
||||||
.required("module", SyntaxShape::String, "Module or module file.")
|
.required("module", SyntaxShape::String, "Module or module file.")
|
||||||
.optional(
|
.rest(
|
||||||
"members",
|
"members",
|
||||||
SyntaxShape::Any,
|
SyntaxShape::Any,
|
||||||
"Which members of the module to import.",
|
"Which members of the module to import.",
|
||||||
|
Loading…
Reference in New Issue
Block a user