diff options
author | Nicolas Williams <nico@cryptonector.com> | 2023-07-23 00:01:52 -0500 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-23 03:33:28 -0500 |
commit | f64ef1a7d7836ee60fb277d49302661af630d6c1 (patch) | |
tree | 8b68318f115e3d2db9ee4026e798a9a48bb2d441 /docs | |
parent | 123c78060773844866b964a67c6c21760aa9f701 (diff) |
Fix --stream-errors w/o --stream, and doc+test (close #2748)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/manual/manual.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index 6568ec1e..157bdc42 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -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` without `--stream-errors`. + * `--slurp`/`-s`: Instead of running the filter for each JSON object in the |