diff options
author | Brad King <brad.king@kitware.com> | 2003-02-19 01:42:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-02-19 01:42:02 (GMT) |
commit | 5e18bec8f76a811e48d2c31a954d0de44e8c5c11 (patch) | |
tree | 7c9f61e2a5d552f3ce69c2dd80618edc2cdf0af2 /Source/cmakemain.cxx | |
parent | ba56262ae21686670b26935d3a89cabc6f4d8a1f (diff) | |
download | CMake-5e18bec8f76a811e48d2c31a954d0de44e8c5c11.zip CMake-5e18bec8f76a811e48d2c31a954d0de44e8c5c11.tar.gz CMake-5e18bec8f76a811e48d2c31a954d0de44e8c5c11.tar.bz2 |
ENH: Re-implemented document generation class to be more organized and more robust.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index b86dc07..6a0dc1f 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -24,8 +24,8 @@ //---------------------------------------------------------------------------- static const cmDocumentationEntry cmDocumentationName[] = { - {"cmake", - "- Cross-Platform Makefile Generator.", 0}, + {0, + " cmake - Cross-Platform Makefile Generator.", 0}, {0,0,0} }; @@ -33,7 +33,7 @@ static const cmDocumentationEntry cmDocumentationName[] = static const cmDocumentationEntry cmDocumentationUsage[] = { {0, - "cmake [options] <path-to-source>", 0}, + " cmake [options] <path-to-source>", 0}, {0,0,0} }; @@ -74,12 +74,12 @@ int do_cmake(int ac, char** av) cmake hcm; std::vector<cmDocumentationEntry> commands; hcm.GetCommandDocumentation(commands); - doc.SetName(cmDocumentationName); - doc.SetUsage(cmDocumentationUsage); - doc.SetDescription(cmDocumentationDescription); - doc.SetOptions(cmDocumentationOptions); - doc.SetCommands(&commands[0]); - doc.Print(ht, std::cout); + doc.SetNameSection(cmDocumentationName); + doc.SetUsageSection(cmDocumentationUsage); + doc.SetDescriptionSection(cmDocumentationDescription); + doc.SetOptionsSection(cmDocumentationOptions); + doc.SetCommandsSection(&commands[0]); + doc.PrintDocumentation(ht, std::cout); return 0; } |