jq accepts arguments through --arg VARNAME value when oq is being passed one it fails to forward it to jq as it passes --arg VARNAME only and this results in a broken command:
strace -f -e execve oq -i yaml --arg VARNAME value '[1]' /dev/null
results in:
execve("/usr/local/bin/oq", ["oq", "-i", "yaml", "--arg", "VARNAME", "value", "[1]", "/dev/null"], 0x7ffe1c200eb8 /* 92 vars */) = 0
[pid 27961] execve("/usr/bin/jq", ["jq", "--arg", "VARNAME"], 0x7ffe12681ac0 /* 92 vars */) = 0
jq: --arg takes two parameters (e.g. --arg varname value)
Use jq --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
oq error: Error opening file 'value' with mode 'r': No such file or directory
jq
accepts arguments through--arg VARNAME value
whenoq
is being passed one it fails to forward it tojq
as it passes--arg VARNAME
only and this results in a broken command:strace -f -e execve oq -i yaml --arg VARNAME value '[1]' /dev/null
results in: