mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +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")
|
||||
.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.",
|
||||
|
Loading…
Reference in New Issue
Block a user