mirror of
https://github.com/nushell/nushell.git
synced 2025-02-16 10:32:29 +01:00
Fix the signature of view ir
(#13342)
# Description Fix `view ir` to use `Signature::build()` rather than `new()`, which is required for `--help` to work. Also add `Category::Debug`, as that's most appropriate.
This commit is contained in:
parent
801cfae279
commit
d97512df8e
@ -10,7 +10,7 @@ impl Command for ViewIr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::new(self.name())
|
Signature::build(self.name())
|
||||||
.required(
|
.required(
|
||||||
"closure",
|
"closure",
|
||||||
SyntaxShape::Closure(None),
|
SyntaxShape::Closure(None),
|
||||||
@ -22,6 +22,7 @@ impl Command for ViewIr {
|
|||||||
Some('j'),
|
Some('j'),
|
||||||
)
|
)
|
||||||
.input_output_type(Type::Nothing, Type::String)
|
.input_output_type(Type::Nothing, Type::String)
|
||||||
|
.category(Category::Debug)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
fn usage(&self) -> &str {
|
||||||
|
Loading…
Reference in New Issue
Block a user