micha/jsawk — pull request #33 by dansoton (2014-06-22 02:58:47+00:00)
Title: Adding in 2 new CLI arguments to provide better support for providing the input to parse

Adding in support for 2 new command line arguments:

-i allows an filepath to be passed in as input instead of having to cat it to STDIN.
-s allows a String literal to be passed as input instead of having to echo it to STDIN.

If neither of those command line arguments are specified it will still read the input from STDIN as before. The reason for this change is it cleans up invocation of jsawk from script files, especially when the input string is already stored in a variable (perhaps returned from a REST Web Service query).