void CommandLineHelpWriter::Impl::formatBugs(const HelpWriterContext &context) { if (bugs_.empty()) { return; } context.writeTitle("Known Issues"); ConstArrayRef<const char *>::const_iterator i; for (i = bugs_.begin(); i != bugs_.end(); ++i) { const char *const bug = *i; context.writeTextBlock(formatString("* %s", bug)); } }
void AbstractCompositeHelpTopic::writeHelp(const HelpWriterContext &context) const { context.writeTextBlock(helpText()); writeSubTopicList(context, "\nAvailable subtopics:"); }
void AbstractSimpleHelpTopic::writeHelp(const HelpWriterContext &context) const { context.writeTextBlock(helpText()); }
void CommandLineHelpModule::writeHelp(const HelpWriterContext &context) const { context.writeTextBlock( "Usage: [PROGRAM] help [<command>|<topic> [<subtopic> [...]]]"); // TODO: More information. }