| 727 | } |
| 728 | |
| 729 | bool cmDocumentation::PrintHelp(std::ostream& os) |
| 730 | { |
| 731 | auto si = this->AllSections.find("Usage"); |
| 732 | if (si != this->AllSections.end()) { |
| 733 | this->Formatter.PrintSection(os, si->second); |
| 734 | } |
| 735 | si = this->AllSections.find("Options"); |
| 736 | if (si != this->AllSections.end()) { |
| 737 | this->Formatter.PrintSection(os, si->second); |
| 738 | } |
| 739 | if (this->ShowGenerators) { |
| 740 | si = this->AllSections.find("Generators"); |
| 741 | if (si != this->AllSections.end()) { |
| 742 | this->Formatter.PrintSection(os, si->second); |
| 743 | } |
| 744 | } |
| 745 | return true; |
| 746 | } |
| 747 | |
| 748 | char const* cmDocumentation::GetNameString() const |
| 749 | { |
no test coverage detected