Add --argjson, fix #648

This commit is contained in:
Nicolas Williams committed 2014-12-12 16:40:07 -06:00
1 parent fd041c2064
commit 44c2382402
2 files changed
+27 -1

No files matched your search

+9 -1
View File
@@ -190,7 +190,15 @@ sections:
This option passes a value to the jq program as a predefined
variable. If you run jq with `--arg foo bar`, then `$foo` is
available in the program and has the value `"bar"`.
available in the program and has the value `"bar"`. Note that
`value` will be treated as a string, so `--arg foo 123` will
bind `$foo` to `"123"`.
* `--argjson name JSON-text`:
This option passes a JSON-encoded value to the jq program as a
predefined variable. If you run jq with `--argjson foo 123`, then
`$foo` is available in the program and has the value `123`.
* `--argfile name filename`: