From 0a33f2bb31eb969e2d460d9365a24029417df99e Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sun, 24 Mar 2024 21:31:55 -0700 Subject: [PATCH] feat: add more synonyms for json response I often forget what is the right parameter for json response so just add more synonyms, json, json output, and json format. --- pkg/parser/parser.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 6466bece..fd458441 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -113,6 +113,14 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) { return false, err } tool.Parameters.Cache = &b + case "jsonmode": + fallthrough + case "json": + fallthrough + case "jsonoutput": + fallthrough + case "jsonformat": + fallthrough case "jsonresponse": tool.Parameters.JSONResponse, err = toBool(value) if err != nil {