mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Allow rest vars to have a custom name
This commit is contained in:
@ -27,7 +27,7 @@ fn test_signature_chained() {
|
||||
)
|
||||
.named("named", SyntaxShape::String, "named description", Some('n'))
|
||||
.switch("switch", "switch description", None)
|
||||
.rest(SyntaxShape::String, "rest description");
|
||||
.rest("rest", SyntaxShape::String, "rest description");
|
||||
|
||||
assert_eq!(signature.required_positional.len(), 1);
|
||||
assert_eq!(signature.optional_positional.len(), 1);
|
||||
|
Reference in New Issue
Block a user