[poppler] utils/pdfunite.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Nov 11 15:43:24 PST 2012
utils/pdfunite.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit fd651fb49653e89d96b032e010a7d8e891536bb0
Author: Albert Astals Cid <aacid at kde.org>
Date: Mon Nov 12 00:42:49 2012 +0100
Parse the args (so that -v says vesion only)
Fixes bug #56817
diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
index a16f4dd..6502259 100644
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -7,6 +7,7 @@
// Copyright (C) 2011 Thomas Freitag <Thomas.Freitag at alfa.de>
// Copyright (C) 2012 Arseny Solokha <asolokha at gmx.com>
// Copyright (C) 2012 Fabio D'Urso <fabiodurso at hotmail.it>
+// Copyright (C) 2012 Albert Astals Cid <aacid at 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);
More information about the poppler
mailing list