diff options
-rw-r--r-- | utils/pdftohtml.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/pdftohtml.cc b/utils/pdftohtml.cc index 8ce0430a..35e8d842 100644 --- a/utils/pdftohtml.cc +++ b/utils/pdftohtml.cc @@ -200,7 +200,7 @@ int main(int argc, char *argv[]) { if (!printVersion) { printUsage("pdftohtml", "<PDF-file> [<html-file> <xml-file>]", argDesc); } - exit(1); + exit(printHelp || printVersion ? 0 : 1); } // init error file |