From ac28fb90a951fe0a334e8ea974cb9d0830f8acb9 Mon Sep 17 00:00:00 2001 From: helmut Kemper Date: Thu, 15 Dec 2022 22:51:02 -0300 Subject: [PATCH] Update README.md (#58) * Update README.md explanation * Update README.md Co-authored-by: Rex P <106129829+another-rex@users.noreply.github.com> Co-authored-by: Oliver Chang Co-authored-by: Rex P <106129829+another-rex@users.noreply.github.com> --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1b18ae9603..9fbf3eba9f 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,8 @@ reason = "No external http servers are written in Go lang." ## JSON output By default osv-scanner outputs a human readable table. To have osv-scanner output JSON instead, pass the `--json` flag when calling osv-scanner. +When using the --json flag, only the JSON output will be printed to stdout, with all other outputs being directed to stderr. So to save only the json output to file, you can redirect the output with `osv-scanner --json ... > /path/to/file.json` + ### Output Format ```json5 {