diff --git a/crates/nu-command/src/filters/where_.rs b/crates/nu-command/src/filters/where_.rs index d0c4288c83..f6ece970bf 100644 --- a/crates/nu-command/src/filters/where_.rs +++ b/crates/nu-command/src/filters/where_.rs @@ -43,7 +43,10 @@ While where supports closure literals, they can not be read from a variable. To ]) .required( "condition", - SyntaxShape::OneOf(vec![SyntaxShape::RowCondition, SyntaxShape::Closure(None)]), + SyntaxShape::OneOf(vec![ + SyntaxShape::RowCondition, + SyntaxShape::Closure(Some(vec![SyntaxShape::Any])), + ]), "Filter row condition or closure.", ) .allow_variants_without_examples(true)