Skip to content

Commit

Permalink
Clarify -f argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
thaliaarchi committed Nov 8, 2024
1 parent eb9bdca commit 00a14c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/content/manual/dev/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,11 @@ sections:
RS. This mode also parses the output of jq without the `--seq`
option.
* `-f filename` / `--from-file filename`:
* `-f` / `--from-file`:
Read filter from the file rather than from a command line, like
awk's -f option.
Read filter from a file rather than from a command line, like
awk's -f option. This changes the filter argument to be
interpreted as a filename, instead of the source of a program.
* `-L directory` / `--library-path directory`:
Expand Down
4 changes: 2 additions & 2 deletions jq.1.prebuilt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void usage(int code, int keep_it_short) {
" --stream-errors implies --stream and report parse error as\n"
" an array;\n"
" --seq parse input/output as application/json-seq;\n"
" -f, --from-file file load filter from the file;\n"
" -f, --from-file load filter from a file;\n"
" -L, --library-path dir search modules from the directory;\n"
" --arg name value set $name to the string value;\n"
" --argjson name value set $name to the JSON value;\n"
Expand Down

0 comments on commit 00a14c6

Please sign in to comment.