Fix nth regression

This commit is contained in:
Jonathan Turner 2019-09-24 19:56:03 +12:00
parent 60b7da8ea7
commit 15481b7be1
2 changed files with 4 additions and 4 deletions

View File

@ -28,11 +28,11 @@ impl PerItemCommand for Help {
) -> Result<OutputStream, ShellError> {
let tag = call_info.name_tag;
match call_info.args.expect_nth(0)? {
Tagged {
match call_info.args.nth(0) {
Some(Tagged {
item: Value::Primitive(Primitive::String(document)),
tag,
} => {
}) => {
let mut help = VecDeque::new();
if document == "commands" {
let mut sorted_names = registry.names();

View File

@ -16,7 +16,7 @@ impl WholeStreamCommand for Nth {
}
fn signature(&self) -> Signature {
Signature::build("nth").required("amount", SyntaxShape::Any)
Signature::build("nth").required("row number", SyntaxShape::Any)
}
fn usage(&self) -> &str {