diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-28 15:00:57 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-28 15:00:57 (GMT) |
commit | c95dc91237436b363772c418d4d0d2d1203f6119 (patch) | |
tree | 20a734f677ed90e02be1baf6e57c35ca3f1bc615 /Source/cmakemain.cxx | |
parent | 789f0b26d9d18c4f020637ec1d63d25923765ab3 (diff) | |
download | CMake-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/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 1bc643e..e204b8f 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -170,9 +170,11 @@ int do_cmake(int ac, char** av) hcm.AddCMakePaths(av[0]); doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT")); std::vector<cmDocumentationEntry> commands; + std::vector<cmDocumentationEntry> compatCommands; std::vector<cmDocumentationEntry> properties; std::vector<cmDocumentationEntry> generators; - hcm.GetCommandDocumentation(commands); + hcm.GetCommandDocumentation(commands, true, false); + hcm.GetCommandDocumentation(compatCommands, false, true); hcm.GetPropertiesDocumentation(properties); hcm.GetGeneratorDocumentation(generators); doc.SetName("cmake"); @@ -182,6 +184,7 @@ int do_cmake(int ac, char** av) doc.SetGeneratorsSection(&generators[0]); doc.SetOptionsSection(cmDocumentationOptions); doc.SetCommandsSection(&commands[0]); + doc.SetCompatCommandsSection(&compatCommands[0]); doc.SetPropertiesSection(&properties[0]); doc.SetSeeAlsoList(cmDocumentationSeeAlso); int result = doc.PrintRequestedDocumentation(std::cout)? 0:1; |