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

Method PrintHelpOneVariable

Source/cmDocumentation.cxx:701–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701bool cmDocumentation::PrintHelpOneVariable(std::ostream& os)
702{
703 std::string vname = cmSystemTools::HelpFileName(this->CurrentArgument);
704 if (this->PrintFiles(os, cmStrCat("variable/", vname))) {
705 return true;
706 }
707 // Argument was not a variable. Complain.
708 os << "Argument \"" << this->CurrentArgument
709 << "\" to --help-variable is not a defined variable. "
710 "Use --help-variable-list to see all defined variables.\n";
711 return false;
712}
713
714bool cmDocumentation::PrintHelpListVariables(std::ostream& os)
715{

Callers 1

PrintDocumentationMethod · 0.95

Calls 2

PrintFilesMethod · 0.95
cmStrCatFunction · 0.70

Tested by

no test coverage detected