tomnomnom / gron

Make JSON greppable!
MIT License
13.73k stars 325 forks source link

When executed as “ungron” act as if —ungron passed #77

Closed alblue closed 3 years ago

alblue commented 3 years ago

If you check your program name in gron, you can automatically enable ungron mode. See (eg) grep/egrep/fgrep which is the same binary but has a different behaviour depending on the program name.

mikepurvis commented 3 years ago

Note that doing this also helps package maintainers support the feature conveniently. For example in Debian, you just create debian/links in your packaging metadata, and the link will be managed as a part of the package.

See: https://manpages.debian.org/stable/debhelper/dh_link.1.en.html

tomnomnom commented 3 years ago

This is fixed now that #78 is merged. Thank you, @alblue :)