diff options
Diffstat (limited to 'libqpdf/QPDFArgParser.cc')
-rw-r--r-- | libqpdf/QPDFArgParser.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 69a97a5c..8d7c978c 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -967,21 +967,20 @@ void QPDFArgParser::getAllHelp(std::ostringstream& msg) { getTopHelp(msg); - auto show = [this, &msg](std::map<std::string, HelpTopic>& topics, - std::string const& label) { + auto show = [this, &msg](std::map<std::string, HelpTopic>& topics) { for (auto const& i: topics) { auto const& topic = i.first; msg << std::endl - << "== " << label << " " << topic + << "== " << topic << " (" << i.second.short_text << ") ==" << std::endl << std::endl; getTopicHelp(topic, i.second, msg); } }; - show(this->m->help_topics, "topic"); - show(this->m->option_help, "option"); + show(this->m->help_topics); + show(this->m->option_help); msg << std::endl << "====" << std::endl; } |