From 9e709f6bde90f4e92ff9ee93b26ba3d4ee2871f6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 4 Oct 2006 19:21:20 -0400 Subject: [PATCH] BUG: The --help option should list generators. This addresses bug #2494. --- Source/CursesDialog/ccmake.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index dd0b0826e..8de98218a 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -110,11 +110,14 @@ int main(int argc, char** argv) { cmake hcm; std::vector commands; + std::vector generators; hcm.GetCommandDocumentation(commands); + hcm.GetGeneratorDocumentation(generators); doc.SetName("ccmake"); doc.SetNameSection(cmDocumentationName); doc.SetUsageSection(cmDocumentationUsage); doc.SetDescriptionSection(cmDocumentationDescription); + doc.SetGeneratorsSection(&generators[0]); doc.SetOptionsSection(cmDocumentationOptions); doc.SetCommandsSection(&commands[0]); doc.SetSeeAlsoList(cmDocumentationSeeAlso);