Added rawfile

In passing, clean remnants of argfile from slurpfile docs.
This commit is contained in:
David Fetter authored and Nicolas Williams committed 2017-12-11 12:17:17 -06:00
1 parent 9a4576e756
commit b4742c1257
2 files changed
+14 -2

No files matched your search

+8 -1
View File
@@ -236,10 +236,17 @@ sections:
This option reads all the JSON texts in the named file and binds
an array of the parsed JSON values to the given global variable.
If you run jq with `--argfile foo bar`, then `$foo` is available
If you run jq with `--slurpfile foo bar`, then `$foo` is available
in the program and has an array whose elements correspond to the
texts in the file named `bar`.
* `--rawfile variable-name filename`:
This option reads in the named file and binds its contents to the given
global variable. If you run jq with `--rawfile foo bar`, then `$foo` is
available in the program and has a string whose contents are to the texs
in the file named `bar`.
* `--argfile variable-name filename`:
Do not use. Use `--slurpfile` instead.