summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-17 14:42:26 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-17 14:42:26 (GMT)
commit70dc3c4cb1cb84b2629fcf234497655b1c07bca8 (patch)
treee3dd433955f368aa0df9c9754911f0bcf5ab1bae
parent07cdd0e60cedd434ff3ec5abb1fe12af0a3ac803 (diff)
downloadCMake-70dc3c4cb1cb84b2629fcf234497655b1c07bca8.zip
CMake-70dc3c4cb1cb84b2629fcf234497655b1c07bca8.tar.gz
CMake-70dc3c4cb1cb84b2629fcf234497655b1c07bca8.tar.bz2
ENH: Added executable-specific command-line options.
-rw-r--r--Source/cmakemain.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index f6d8dfa..b86dc07 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -33,7 +33,7 @@ static const cmDocumentationEntry cmDocumentationName[] =
static const cmDocumentationEntry cmDocumentationUsage[] =
{
{0,
- "cmake <path-to-source>", 0},
+ "cmake [options] <path-to-source>", 0},
{0,0,0}
};
@@ -45,6 +45,13 @@ static const cmDocumentationEntry cmDocumentationDescription[] =
{0,0,0}
};
+//----------------------------------------------------------------------------
+static const cmDocumentationEntry cmDocumentationOptions[] =
+{
+ {"-i", "Run in wizard mode.", 0},
+ {0,0,0}
+};
+
int do_cmake(int ac, char** av);
void updateProgress(const char *msg, float prog, void *cd);
@@ -70,6 +77,7 @@ int do_cmake(int ac, char** av)
doc.SetName(cmDocumentationName);
doc.SetUsage(cmDocumentationUsage);
doc.SetDescription(cmDocumentationDescription);
+ doc.SetOptions(cmDocumentationOptions);
doc.SetCommands(&commands[0]);
doc.Print(ht, std::cout);
return 0;