tomnomnom / gron

Make JSON greppable!
MIT License
13.83k stars 327 forks source link

Allow running as ungron to perform --ungron automatically #78

Closed alblue closed 3 years ago

alblue commented 3 years ago

The executable is normally executed as gron which performs the gron operation. However, in order to install it as ungron, an alias is not necessary as a symbolic link can be used instead. When the program detects that it is being run as an executable called ungron then it will automatically set the --ungron argument.

alblue commented 3 years ago

Fixes #78

It's possible that the package generated could include a symlink (or a copy) of the binary to ungron to make it easy out-of-the-box, but this commit doesn't change the packaging, just providing the functionality.

tomnomnom commented 3 years ago

Thank you for your PR; this is a useful addition :)