itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

fix(cli): update cli flags to match jq 1.7 #222

Closed hakamadare closed 1 year ago

hakamadare commented 1 year ago

the gojq CLI has some differences in flags compared to the current release of jq. some are clearly intentional, such as --yaml-output, but others are different in name but not in behavior, which can prevent gojq from being a drop-in replacement for jq in scripts.

this PR updates CLI flags to match jq 1.7.

itchyny commented 1 year ago

I will fix this myself. The new flag should match the jq behavior strictly.

itchyny commented 1 year ago

Implemented by da87aa1df6fb48c48da788d418b7c1ed6d9abf7d.