BUG: The --help option should list generators. This addresses bug #2494.

This commit is contained in:
Brad King 2006-10-04 19:21:20 -04:00
parent 9f52b7d2da
commit 9e709f6bde
1 changed files with 3 additions and 0 deletions

View File

@ -110,11 +110,14 @@ int main(int argc, char** argv)
{ {
cmake hcm; cmake hcm;
std::vector<cmDocumentationEntry> commands; std::vector<cmDocumentationEntry> commands;
std::vector<cmDocumentationEntry> generators;
hcm.GetCommandDocumentation(commands); hcm.GetCommandDocumentation(commands);
hcm.GetGeneratorDocumentation(generators);
doc.SetName("ccmake"); doc.SetName("ccmake");
doc.SetNameSection(cmDocumentationName); doc.SetNameSection(cmDocumentationName);
doc.SetUsageSection(cmDocumentationUsage); doc.SetUsageSection(cmDocumentationUsage);
doc.SetDescriptionSection(cmDocumentationDescription); doc.SetDescriptionSection(cmDocumentationDescription);
doc.SetGeneratorsSection(&generators[0]);
doc.SetOptionsSection(cmDocumentationOptions); doc.SetOptionsSection(cmDocumentationOptions);
doc.SetCommandsSection(&commands[0]); doc.SetCommandsSection(&commands[0]);
doc.SetSeeAlsoList(cmDocumentationSeeAlso); doc.SetSeeAlsoList(cmDocumentationSeeAlso);