From 53ba65eb59d0bced37e73d8bf96a0d7a7285f662 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 7 Jan 2022 15:29:27 -0500 Subject: QPDFArgParser: handle optional choices including help Handle optional choices in addition to required choices. Refactor the way help options are added to completion to make it work with optional help choices. --- libqpdf/QPDFJob_argv.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libqpdf/QPDFJob_argv.cc') diff --git a/libqpdf/QPDFJob_argv.cc b/libqpdf/QPDFJob_argv.cc index 0cf12cd4..9b678257 100644 --- a/libqpdf/QPDFJob_argv.cc +++ b/libqpdf/QPDFJob_argv.cc @@ -127,9 +127,11 @@ ArgParser::argCopyright() << std::endl; } +#if 0 void ArgParser::argHelp() { + // QXXXQ std::cout // 12345678901234567890123456789012345678901234567890123456789012345678901234567890 << "Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile\n" @@ -630,6 +632,7 @@ ArgParser::argHelp() << "qpdf to completely ignore warnings. qpdf does not use exit status 1,\n" << "since that is used by the shell if it can't execute qpdf.\n"; } +#endif void ArgParser::argJsonHelp() -- cgit v1.2.3-54-g00ecf