summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-19 01:42:02 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-19 01:42:02 (GMT)
commit5e18bec8f76a811e48d2c31a954d0de44e8c5c11 (patch)
tree7c9f61e2a5d552f3ce69c2dd80618edc2cdf0af2 /Source/cmakemain.cxx
parentba56262ae21686670b26935d3a89cabc6f4d8a1f (diff)
downloadCMake-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.cxx18
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;
}