mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 13:28:50 +02: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);
|
let decl = working_set.get_decl(decl_id);
|
||||||
|
|
||||||
err = check_call(call_span, &decl.signature(), &call).or(err);
|
err = check_call(call_span, &decl.signature(), &call).or(err);
|
||||||
if err.is_some() {
|
if err.is_some() || call.has_flag("help") {
|
||||||
return (
|
return (
|
||||||
Statement::Pipeline(Pipeline::from_vec(vec![Expression {
|
Statement::Pipeline(Pipeline::from_vec(vec![Expression {
|
||||||
expr: Expr::Call(call),
|
expr: Expr::Call(call),
|
||||||
|
Loading…
Reference in New Issue
Block a user