mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01: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
@ -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 New Issue
Block a user