forked from extern/nushell
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]
|
||||
fn test_signature() {
|
||||
|
@ -130,7 +130,7 @@ impl Signature {
|
||||
let (name, s) = self.check_names(name, short);
|
||||
|
||||
self.named.push(Flag {
|
||||
long: name.into(),
|
||||
long: name,
|
||||
short: s,
|
||||
arg: Some(shape.into()),
|
||||
required: false,
|
||||
@ -152,7 +152,7 @@ impl Signature {
|
||||
let (name, s) = self.check_names(name, short);
|
||||
|
||||
self.named.push(Flag {
|
||||
long: name.into(),
|
||||
long: name,
|
||||
short: s,
|
||||
arg: Some(shape.into()),
|
||||
required: true,
|
||||
@ -173,7 +173,7 @@ impl Signature {
|
||||
let (name, s) = self.check_names(name, short);
|
||||
|
||||
self.named.push(Flag {
|
||||
long: name.into(),
|
||||
long: name,
|
||||
short: s,
|
||||
arg: None,
|
||||
required: false,
|
||||
|
Loading…
Reference in New Issue
Block a user