From 758e3e38f5aceea2502179c7c4840911337f8a3f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 20 Oct 2020 17:58:47 -0400 Subject: Add option --warning-exit-0 to exit 0 instead of 3 with warnings --- manual/qpdf-manual.xml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'manual') 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 0: 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 + was specified, exit status 0 + is used even if there are warnings. @@ -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 3 if it finds warnings even when - is specified. + is specified. With + , warnings without errors + exit with status 0 instead of 3. @@ -778,7 +782,19 @@ make Suppress writing of warnings to stderr. If warnings were detected and suppressed, qpdf will still - exit with exit code 3. + exit with exit code 3. See also + . + + + + + + + + If warnings are found but no errors, exit with exit code 0 + instead 3. When combined with , the + effect is for qpdf to completely ignore + warnings. -- cgit v1.2.3-54-g00ecf