summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2023-10-03 04:39:42 +0200
committerNico Williams <nico@cryptonector.com>2023-10-04 00:00:46 -0500
commit4ebd21e1ebcac6f59b0ed1ea09f56385756f268c (patch)
tree674325b10323dae990841d4e7d84541e5a58acf1 /docs
parent7f547827e47b5ade563a293329deb4226496d72f (diff)
Allow passing the inline jq script before --
jq previously only allowed passing the inline script before -- (as if they were options) even though one would expect the inline script to be a positional argument. Since jq previously also refused to run with a usage error if the script was passed after -- (It was not assuming . as script as it does when no arguments are passed), and positional arguments are allowed before -- and even before other options, it should not be a breaking change to change that weird behaviour, and allow the script to appear after --. It also simplifies the option parsing code a bunch. Fixes #2918
Diffstat (limited to 'docs')
-rw-r--r--docs/content/manual/manual.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml
index 242cf510..842c9373 100644
--- a/docs/content/manual/manual.yml
+++ b/docs/content/manual/manual.yml
@@ -313,9 +313,8 @@ sections:
* `--`:
- Terminates argument processing. Remaining arguments are
- positional, either strings, JSON texts, or input filenames,
- according to whether `--args` or `--jsonargs` were given.
+ Terminates argument processing. Remaining arguments are not
+ interpreted as options.
* `--run-tests [filename]`: