diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-10-20 23:58:47 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-10-21 00:02:39 +0200 |
commit | 758e3e38f5aceea2502179c7c4840911337f8a3f (patch) | |
tree | 9bb3fa4742b879f5c44c95b99da6aa9db4c92650 /manual | |
parent | 90217e6686fe2f3790f2a36d1ab74bab13a0aab5 (diff) | |
download | qpdf-758e3e38f5aceea2502179c7c4840911337f8a3f.tar.zst |
Add option --warning-exit-0 to exit 0 instead of 3 with warnings
Diffstat (limited to 'manual')
-rw-r--r-- | manual/qpdf-manual.xml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 9579562c..866a5016 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -603,7 +603,9 @@ make <listitem> <para> <literal>0</literal>: no errors or warnings were found. The - file may still have problems qpdf can't detect. + file may still have problems qpdf can't detect. If + <option>--warning-exit-0</option> was specified, exit status 0 + is used even if there are warnings. </para> </listitem> <listitem> @@ -618,7 +620,9 @@ make able to recover from. In some cases, the resulting file may still be damaged. Note that qpdf still exits with status <literal>3</literal> if it finds warnings even when - <option>--no-warn</option> is specified. + <option>--no-warn</option> is specified. With + <option>--warning-exit-0</option>, warnings without errors + exit with status 0 instead of 3. </para> </listitem> </itemizedlist> @@ -778,7 +782,19 @@ make <para> Suppress writing of warnings to stderr. If warnings were detected and suppressed, <command>qpdf</command> will still - exit with exit code 3. + exit with exit code 3. See also + <option>--warning-exit-0</option>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>--warning-exit-0</option></term> + <listitem> + <para> + If warnings are found but no errors, exit with exit code 0 + instead 3. When combined with <option>--no-warn</option>, the + effect is for <command>qpdf</command> to completely ignore + warnings. </para> </listitem> </varlistentry> |