mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue