aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFArgParser.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-15 21:34:35 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-15 22:13:12 +0100
commitfbd3e56da787d18e7a8794580d0e95b7669d1bc4 (patch)
tree33536b518187508d284771504f09c90c70ae5201 /libqpdf/QPDFArgParser.cc
parent19608ec151f218aa5f7c47a2d1e497d88acbb3be (diff)
downloadqpdf-fbd3e56da787d18e7a8794580d0e95b7669d1bc4.tar.zst
Ignore -- at the top level arg parser (fixes #652)
This was unintended behavior that was added back for backward compatibility. It is intentionally undocumented.
Diffstat (limited to 'libqpdf/QPDFArgParser.cc')
-rw-r--r--libqpdf/QPDFArgParser.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc
index 0e072c10..868db709 100644
--- a/libqpdf/QPDFArgParser.cc
+++ b/libqpdf/QPDFArgParser.cc
@@ -554,8 +554,7 @@ QPDFArgParser::parseArgs()
bool have_parameter = false;
std::string o_arg(arg);
std::string arg_s(arg);
- if ((strcmp(arg, "--") == 0) &&
- (this->m->option_table != &this->m->main_option_table))
+ if (strcmp(arg, "--") == 0)
{
// Special case for -- option, which is used to break out
// of subparsers.