mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Plugin json (#475)
* json encoder * thread to pass messages * description for example * check for help flag
This commit is contained in:
parent
4d7dd23779
commit
34a8a897c5
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue