Skip to content

Commit 0a33f2b

Browse files
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.
1 parent f3c20db commit 0a33f2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/parser/parser.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) {
113113
return false, err
114114
}
115115
tool.Parameters.Cache = &b
116+
case "jsonmode":
117+
fallthrough
118+
case "json":
119+
fallthrough
120+
case "jsonoutput":
121+
fallthrough
122+
case "jsonformat":
123+
fallthrough
116124
case "jsonresponse":
117125
tool.Parameters.JSONResponse, err = toBool(value)
118126
if err != nil {

0 commit comments

Comments
 (0)