Document that --check > /dev/null is safe (fixes #522)

This commit is contained in:
Jay Berkenbilt 2021-11-02 18:06:09 -04:00
parent 532a4f3d60
commit 42ca1f007a
1 changed files with 6 additions and 1 deletions

View File

@ -2943,7 +2943,12 @@ outfile.pdf</option>
recover, after which other options are effectively operating
on the recovered file. Combining <option>--check</option> with
other options in this way can be useful for manually
recovering severely damaged files.
recovering severely damaged files. Note that
<option>--check</option> produces no output to standard output
when everything is valid, so if you are using this to
programmatically validate files in bulk, it is safe to run
without output redirected to <filename>/dev/null</filename>
and just check for a 0 exit code.
</para>
</listitem>
</varlistentry>