diff --git a/crates/nu-command/src/filters/zip.rs b/crates/nu-command/src/filters/zip.rs index 22ea6499acce3..a4cdfc759ce94 100644 --- a/crates/nu-command/src/filters/zip.rs +++ b/crates/nu-command/src/filters/zip.rs @@ -30,7 +30,11 @@ impl Command for Zip { Type::List(Box::new(Type::List(Box::new(Type::Any)))), ), ]) - .required("other", SyntaxShape::Any, "The other input.") + .required( + "other", + SyntaxShape::OneOf(vec![SyntaxShape::Any, SyntaxShape::Closure(Some(vec![]))]), + "The other input, or closure returning a stream.", + ) .category(Category::Filters) }