Plugin json (#475)

* json encoder

* thread to pass messages

* description for example

* check for help flag
This commit is contained in:
Fernando Herrera 2021-12-12 14:00:07 +00:00 committed by GitHub
parent 4d7dd23779
commit 34a8a897c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),