aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-06 20:26:32 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitf1d805badc1ea09998fea9427687456717936ff7 (patch)
treeb25a383d8b93c3a2c6dff6eb3a8be1acb39fddeb /include
parentc3e9b64e7fde8499f8543503bdfeeeb65512dcd7 (diff)
downloadqpdf-f1d805badc1ea09998fea9427687456717936ff7.tar.zst
Add QPDFArgParser::copyFromOtherTable
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFArgParser.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QPDFArgParser.hh b/include/qpdf/QPDFArgParser.hh
index 24e6ac48..15c17399 100644
--- a/include/qpdf/QPDFArgParser.hh
+++ b/include/qpdf/QPDFArgParser.hh
@@ -117,6 +117,14 @@ class QPDFArgParser
QPDF_DLL
void addRequiredChoices(
std::string const& arg, param_arg_handler_t, char const** choices);
+ QPDF_DLL
+
+ // If an option is shared among multiple tables and uses identical
+ // handlers, you can just copy it instead of repeating the
+ // registration call.
+ void copyFromOtherTable(std::string const& arg,
+ std::string const& other_table);
+
// The final check handler is called at the very end of argument
// parsing.
QPDF_DLL