summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-11-12 00:42:49 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-11-12 00:42:49 +0100
commitfd651fb49653e89d96b032e010a7d8e891536bb0 (patch)
treee31ce4919d13598bdd3e9c6720bbc195ce424ecd /utils
parent7e2e9567f51d01be9a88848e1141c6d4f0f768a1 (diff)
Parse the args (so that -v says vesion only)
Fixes bug #56817
Diffstat (limited to 'utils')
-rw-r--r--utils/pdfunite.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
index a16f4dd7..65022599 100644
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -7,6 +7,7 @@
// Copyright (C) 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2012 Arseny Solokha <asolokha@gmx.com>
// Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
+// Copyright (C) 2012 Albert Astals Cid <aacid@kde.org>
//
//========================================================================
#include <PDFDoc.h>
@@ -56,7 +57,8 @@ int main (int argc, char *argv[])
int exitCode;
exitCode = 99;
- if (argc <= 3 || printVersion || printHelp) {
+ const GBool ok = parseArgs (argDesc, &argc, argv);
+ if (!ok || argc <= 3 || printVersion || printHelp) {
fprintf(stderr, "pdfunite version %s\n", PACKAGE_VERSION);
fprintf(stderr, "%s\n", popplerCopyright);
fprintf(stderr, "%s\n", xpdfCopyright);