mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
Allow passing test witout examples.
Not sure how to have examples run in parse-time.
This commit is contained in:
parent
3ee9b8ae08
commit
7acdb266a5
@ -13,6 +13,7 @@ impl Command for SubCommand {
|
|||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build("path const")
|
Signature::build("path const")
|
||||||
.input_output_type(Type::Nothing, Type::String)
|
.input_output_type(Type::Nothing, Type::String)
|
||||||
|
.allow_variants_without_examples(true)
|
||||||
.optional(
|
.optional(
|
||||||
"path",
|
"path",
|
||||||
SyntaxShape::Filepath,
|
SyntaxShape::Filepath,
|
||||||
|
Loading…
Reference in New Issue
Block a user