mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 15:39:06 +01:00
parent
c984ce9dc9
commit
2c9d8c4818
@ -1543,6 +1543,18 @@ pub fn parse_source(
|
||||
let (call, err) = parse_internal_call(working_set, spans[0], &spans[1..], decl_id);
|
||||
error = error.or(err);
|
||||
|
||||
if error.is_some() || call.has_flag("help") {
|
||||
return (
|
||||
Pipeline::from_vec(vec![Expression {
|
||||
expr: Expr::Call(call),
|
||||
span: span(spans),
|
||||
ty: Type::Unknown,
|
||||
custom_completion: None,
|
||||
}]),
|
||||
error,
|
||||
);
|
||||
}
|
||||
|
||||
// Command and one file name
|
||||
if spans.len() >= 2 {
|
||||
let name_expr = working_set.get_span_contents(spans[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user