diff --git a/src/commands/help.rs b/src/commands/help.rs index c8b22898da..e8c458caad 100644 --- a/src/commands/help.rs +++ b/src/commands/help.rs @@ -28,11 +28,11 @@ impl PerItemCommand for Help { ) -> Result { 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(); diff --git a/src/commands/nth.rs b/src/commands/nth.rs index bf397e1bcf..18bb6f23af 100644 --- a/src/commands/nth.rs +++ b/src/commands/nth.rs @@ -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 {