From f1d805badc1ea09998fea9427687456717936ff7 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 6 Jan 2022 14:26:32 -0500 Subject: Add QPDFArgParser::copyFromOtherTable --- include/qpdf/QPDFArgParser.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2