summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2014-05-24 15:59:42 +0200
committerPino Toscano <pino@kde.org>2014-05-24 15:59:42 +0200
commitf5e702060a84362bfdf75260531920d4ba8b7333 (patch)
tree73633e5044b1406b39ab605ff9a87041e935b646 /utils
parent700bf398ef7b20306f5035e423becfaa3d28fb10 (diff)
pdftohtml: exit with 0 with -v and -h
Diffstat (limited to 'utils')
-rw-r--r--utils/pdftohtml.cc2
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