summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-28 15:00:57 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-28 15:00:57 (GMT)
commitc95dc91237436b363772c418d4d0d2d1203f6119 (patch)
tree20a734f677ed90e02be1baf6e57c35ca3f1bc615 /Source/CursesDialog
parent789f0b26d9d18c4f020637ec1d63d25923765ab3 (diff)
downloadCMake-c95dc91237436b363772c418d4d0d2d1203f6119.zip
CMake-c95dc91237436b363772c418d4d0d2d1203f6119.tar.gz
CMake-c95dc91237436b363772c418d4d0d2d1203f6119.tar.bz2
ENH:
-in the full documentation there is now an extra section for compatibility commands, so users see which commands they shouldn't use -cmake -h <command> now also works with lower case commands --help-fullm --help-command, --help-module and --help-property now determine the output format from the extension of the given filename Let me know if there are some things I overlooked. Alex
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 8de9821..2d5cea0 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -110,8 +110,10 @@ int main(int argc, char** argv)
{
cmake hcm;
std::vector<cmDocumentationEntry> commands;
+ std::vector<cmDocumentationEntry> compatCommands;
std::vector<cmDocumentationEntry> generators;
- hcm.GetCommandDocumentation(commands);
+ hcm.GetCommandDocumentation(commands, true, false);
+ hcm.GetCommandDocumentation(compatCommands, false, true);
hcm.GetGeneratorDocumentation(generators);
doc.SetName("ccmake");
doc.SetNameSection(cmDocumentationName);
@@ -120,6 +122,7 @@ int main(int argc, char** argv)
doc.SetGeneratorsSection(&generators[0]);
doc.SetOptionsSection(cmDocumentationOptions);
doc.SetCommandsSection(&commands[0]);
+ doc.SetCompatCommandsSection(&compatCommands[0]);
doc.SetSeeAlsoList(cmDocumentationSeeAlso);
return doc.PrintRequestedDocumentation(std::cout)? 0:1;
}