MCPcopy Create free account
hub / github.com/Kitware/CMake / PrintHelpOneCommand

Method PrintHelpOneCommand

Source/cmDocumentation.cxx:606–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606bool cmDocumentation::PrintHelpOneCommand(std::ostream& os)
607{
608 std::string cname = cmSystemTools::LowerCase(this->CurrentArgument);
609 if (this->PrintFiles(os, cmStrCat("command/", cname))) {
610 return true;
611 }
612 // Argument was not a command. Complain.
613 os << "Argument \"" << this->CurrentArgument
614 << "\" to --help-command is not a CMake command. "
615 "Use --help-command-list to see all commands.\n";
616 return false;
617}
618
619bool cmDocumentation::PrintHelpListCommands(std::ostream& os)
620{

Callers 1

PrintDocumentationMethod · 0.95

Calls 2

PrintFilesMethod · 0.95
cmStrCatFunction · 0.70

Tested by

no test coverage detected