This commit is contained in:
JT 2021-09-04 20:19:07 +12:00
parent 25c7d8ead6
commit 26b1f022b7
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
use nu_parser::{Flag, PositionalArg, Signature, SyntaxShape};
use nu_protocol::{Flag, PositionalArg, Signature, SyntaxShape};
#[test]
fn test_signature() {

View file

@ -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,