diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-06 20:26:32 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | f1d805badc1ea09998fea9427687456717936ff7 (patch) | |
tree | b25a383d8b93c3a2c6dff6eb3a8be1acb39fddeb /include | |
parent | c3e9b64e7fde8499f8543503bdfeeeb65512dcd7 (diff) | |
download | qpdf-f1d805badc1ea09998fea9427687456717936ff7.tar.zst |
Add QPDFArgParser::copyFromOtherTable
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFArgParser.hh | 8 |
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 |