diff options
Diffstat (limited to 'libqpdf/QPDFJob_argv.cc')
-rw-r--r-- | libqpdf/QPDFJob_argv.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libqpdf/QPDFJob_argv.cc b/libqpdf/QPDFJob_argv.cc index 6cbbd841..b1e3da1c 100644 --- a/libqpdf/QPDFJob_argv.cc +++ b/libqpdf/QPDFJob_argv.cc @@ -67,6 +67,11 @@ ArgParser::initOptionTables() this->ap.addFinalCheck([this](){c_main->checkConfiguration();}); // add_help is defined in auto_job_help.hh add_help(this->ap); + // Special case: ignore -- at the top level. This undocumented + // behavior is for backward compatibility; it was unintentionally + // the case prior to 10.6, and some users were relying on it. + this->ap.selectMainOptionTable(); + this->ap.addBare("--", [](){}); } void |