mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 00:17:02 +02:00
fixup
This commit is contained in:
parent
25c7d8ead6
commit
26b1f022b7
@ -1,4 +1,4 @@
|
|||||||
use nu_parser::{Flag, PositionalArg, Signature, SyntaxShape};
|
use nu_protocol::{Flag, PositionalArg, Signature, SyntaxShape};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_signature() {
|
fn test_signature() {
|
||||||
|
@ -130,7 +130,7 @@ impl Signature {
|
|||||||
let (name, s) = self.check_names(name, short);
|
let (name, s) = self.check_names(name, short);
|
||||||
|
|
||||||
self.named.push(Flag {
|
self.named.push(Flag {
|
||||||
long: name.into(),
|
long: name,
|
||||||
short: s,
|
short: s,
|
||||||
arg: Some(shape.into()),
|
arg: Some(shape.into()),
|
||||||
required: false,
|
required: false,
|
||||||
@ -152,7 +152,7 @@ impl Signature {
|
|||||||
let (name, s) = self.check_names(name, short);
|
let (name, s) = self.check_names(name, short);
|
||||||
|
|
||||||
self.named.push(Flag {
|
self.named.push(Flag {
|
||||||
long: name.into(),
|
long: name,
|
||||||
short: s,
|
short: s,
|
||||||
arg: Some(shape.into()),
|
arg: Some(shape.into()),
|
||||||
required: true,
|
required: true,
|
||||||
@ -173,7 +173,7 @@ impl Signature {
|
|||||||
let (name, s) = self.check_names(name, short);
|
let (name, s) = self.check_names(name, short);
|
||||||
|
|
||||||
self.named.push(Flag {
|
self.named.push(Flag {
|
||||||
long: name.into(),
|
long: name,
|
||||||
short: s,
|
short: s,
|
||||||
arg: None,
|
arg: None,
|
||||||
required: false,
|
required: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user