diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-07 21:29:27 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | 53ba65eb59d0bced37e73d8bf96a0d7a7285f662 (patch) | |
tree | 29049c9c37ba25ea22313b83ac93e20a0a48b74b /libqpdf/QPDFJob_argv.cc | |
parent | a301cc5373f14fd03e51619b0bd5fad22b84e115 (diff) | |
download | qpdf-53ba65eb59d0bced37e73d8bf96a0d7a7285f662.tar.zst |
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.
Diffstat (limited to 'libqpdf/QPDFJob_argv.cc')
-rw-r--r-- | libqpdf/QPDFJob_argv.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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() |