The scancode --help instructions advise to use the --quiet option to skip printing progress messages:
$ ./scancode --help
...
--quiet Do not print progress messages.
...
However, that option has no effect. I still get the progress messages printed on stdout before the JSON output. This prevents me from running scancode as a subprocess and capturing its output as JSON:
$ ./scancode --quiet -l /tmp/LICENSE
Scanning files for: licenses with 1 process(es)...
Building license detection index...Done.
Scanning files...
Scanning done.
Scan statistics: 1 files scanned in 3s.
Scan options: licenses with 1 process(es).
Scanning speed: 0.57 files per sec.
Scanning time: 1s.
Indexing time: 1s.
Saving results.
{... result JSON ...}
The
scancode --helpinstructions advise to use the--quietoption to skip printing progress messages:However, that option has no effect. I still get the progress messages printed on stdout before the JSON output. This prevents me from running
scancodeas a subprocess and capturing its output as JSON: