From 34a8a897c5c5aadab58a2c7affeb6248131a6e64 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Sun, 12 Dec 2021 14:00:07 +0000 Subject: [PATCH] Plugin json (#475) * json encoder * thread to pass messages * description for example * check for help flag --- crates/nu-parser/src/parse_keywords.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-parser/src/parse_keywords.rs b/crates/nu-parser/src/parse_keywords.rs index 34a7eb032..350c55918 100644 --- a/crates/nu-parser/src/parse_keywords.rs +++ b/crates/nu-parser/src/parse_keywords.rs @@ -1130,7 +1130,7 @@ pub fn parse_register( let decl = working_set.get_decl(decl_id); err = check_call(call_span, &decl.signature(), &call).or(err); - if err.is_some() { + if err.is_some() || call.has_flag("help") { return ( Statement::Pipeline(Pipeline::from_vec(vec![Expression { expr: Expr::Call(call),