Add a --arg option to allow variables to be passed from the cmdline.
Closes #107
This commit is contained in:
1 parent
48be23233a
commit
5be97463ec
7 files changed
+46
-6
No files matched your search
@@ -121,6 +121,12 @@ sections:
|
||||
formatted as a JSON string with quotes. This can be useful for
|
||||
making jq filters talk to non-JSON-based systems.
|
||||
|
||||
* `--arg name value`:
|
||||
|
||||
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"`.
|
||||
|
||||
- title: Basic filters
|
||||
entries:
|
||||
- title: "`.`"
|
||||
|
||||
Reference in new issue
Block a user