summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-08 02:44:18 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-08 02:44:18 (GMT)
commit1cecf7b5aaa4a74a1a2a4545a9effda7cdc61879 (patch)
treeaaf5f7056b1e8554dcc0006e64fabb95be0faae5 /Source/CursesDialog/ccmake.cxx
parentb85f000e26fd7d00fee2073581f2c2ce8098fa2d (diff)
downloadCMake-1cecf7b5aaa4a74a1a2a4545a9effda7cdc61879.zip
CMake-1cecf7b5aaa4a74a1a2a4545a9effda7cdc61879.tar.gz
CMake-1cecf7b5aaa4a74a1a2a4545a9effda7cdc61879.tar.bz2
ENH: Added support to write multiple help options with one command line. Output files can now also be specified for the help options.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 03fdb3f..1dc5197 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -93,7 +93,7 @@ void CMakeErrorHandler(const char* message, const char* title, bool&, void* clie
int main(int argc, char** argv)
{
cmDocumentation doc;
- if(cmDocumentation::Type ht = doc.CheckOptions(argc, argv))
+ if(doc.CheckOptions(argc, argv))
{
cmake hcm;
std::vector<cmDocumentationEntry> commands;
@@ -103,8 +103,7 @@ int main(int argc, char** argv)
doc.SetDescriptionSection(cmDocumentationDescription);
doc.SetOptionsSection(cmDocumentationOptions);
doc.SetCommandsSection(&commands[0]);
- doc.PrintDocumentation(ht, std::cout);
- return 0;
+ return doc.PrintRequestedDocumentation(std::cout)? 0:1;
}
bool debug = false;