Skip to content

Commit

Permalink
Fix --stream-errors w/o --stream, and doc+test (close jqlang#2748)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed Jul 23, 2023
1 parent c9c45d7 commit ef77a91
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3,955 deletions.
10 changes: 10 additions & 0 deletions docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ sections:
conjunction with filtering and the `reduce` and `foreach` syntax
to reduce large inputs incrementally.
* `--stream-errors`:
Like `--stream`, but invalid JSON inputs yield array calues
where the first element is the error and the second is a path.
For example, `["a",n]` produces ["Invalid literal at line 1,
column 9",[1]]`.
Implies `--stream`. Invalid JSON inputs produce no error values
when `--stream` w/o `--stream-errors`.
* `--slurp`/`-s`:
Instead of running the filter for each JSON object in the
Expand Down
Loading

0 comments on commit ef77a91

Please sign in to comment.