summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-04 23:21:20 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-04 23:21:20 (GMT)
commit9e709f6bde90f4e92ff9ee93b26ba3d4ee2871f6 (patch)
treec4c2029a7f151b0130a0e02f9c1026c71c882317 /Source/CursesDialog
parent9f52b7d2dace25939034dae5eea758212b58b121 (diff)
downloadCMake-9e709f6bde90f4e92ff9ee93b26ba3d4ee2871f6.zip
CMake-9e709f6bde90f4e92ff9ee93b26ba3d4ee2871f6.tar.gz
CMake-9e709f6bde90f4e92ff9ee93b26ba3d4ee2871f6.tar.bz2
BUG: The --help option should list generators. This addresses bug #2494.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index dd0b082..8de9821 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<cmDocumentationEntry> commands;
+ std::vector<cmDocumentationEntry> 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);