Skip to content

Commit 00a14c6

Browse files
committed
Clarify -f argument parsing
1 parent eb9bdca commit 00a14c6

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

docs/content/manual/dev/manual.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,11 @@ sections:
221221
RS. This mode also parses the output of jq without the `--seq`
222222
option.
223223
224-
* `-f filename` / `--from-file filename`:
224+
* `-f` / `--from-file`:
225225
226-
Read filter from the file rather than from a command line, like
227-
awk's -f option.
226+
Read filter from a file rather than from a command line, like
227+
awk's -f option. This changes the filter argument to be
228+
interpreted as a filename, instead of the source of a program.
228229
229230
* `-L directory` / `--library-path directory`:
230231

jq.1.prebuilt

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void usage(int code, int keep_it_short) {
9494
" --stream-errors implies --stream and report parse error as\n"
9595
" an array;\n"
9696
" --seq parse input/output as application/json-seq;\n"
97-
" -f, --from-file file load filter from the file;\n"
97+
" -f, --from-file load filter from a file;\n"
9898
" -L, --library-path dir search modules from the directory;\n"
9999
" --arg name value set $name to the string value;\n"
100100
" --argjson name value set $name to the JSON value;\n"

0 commit comments

Comments
 (0)