aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFArgParser.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-03 16:16:28 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit0910e767ad5609c2efcf65ddc80a5b7bede434d0 (patch)
tree3d0f7d02be2d8182f3c549a0d78c8e5ce8b0e6c4 /libqpdf/QPDFArgParser.cc
parent8c718b7e6f6e1fdf88ca3b93be0304d5753bc376 (diff)
downloadqpdf-0910e767ad5609c2efcf65ddc80a5b7bede434d0.tar.zst
QPDFJob increment: basic QPDFJob structure
Move most of the methods called from qpdf.cc after argument parsing into QPDFJob. In this increment, enough QPDFJob API has been added to handle the branch of QPDFJob::run() that creates output with an appropriate division between qpdf.cc and QPDFJob. There are temporary bits of code to enable everything to compile and pass the test suite, including some duplication and hard-coded values.
Diffstat (limited to 'libqpdf/QPDFArgParser.cc')
-rw-r--r--libqpdf/QPDFArgParser.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc
index 81b6557d..a1e9b785 100644
--- a/libqpdf/QPDFArgParser.cc
+++ b/libqpdf/QPDFArgParser.cc
@@ -24,6 +24,11 @@ QPDFArgParser::Members::Members(
option_table(nullptr),
final_check_handler(nullptr)
{
+ // Remove prefix added by libtool for consistency during testing.
+ if (strncmp(whoami, "lt-", 3) == 0)
+ {
+ whoami += 3;
+ }
}
QPDFArgParser::QPDFArgParser(int argc, char* argv[], char const* progname_env) :