ENH: Added executable-specific command-line options.

This commit is contained in:
Brad King 2003-02-17 09:42:26 -05:00
parent 07cdd0e60c
commit 70dc3c4cb1
1 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,7 @@ static const cmDocumentationEntry cmDocumentationName[] =
static const cmDocumentationEntry cmDocumentationUsage[] = static const cmDocumentationEntry cmDocumentationUsage[] =
{ {
{0, {0,
"cmake <path-to-source>", 0}, "cmake [options] <path-to-source>", 0},
{0,0,0} {0,0,0}
}; };
@ -45,6 +45,13 @@ static const cmDocumentationEntry cmDocumentationDescription[] =
{0,0,0} {0,0,0}
}; };
//----------------------------------------------------------------------------
static const cmDocumentationEntry cmDocumentationOptions[] =
{
{"-i", "Run in wizard mode.", 0},
{0,0,0}
};
int do_cmake(int ac, char** av); int do_cmake(int ac, char** av);
void updateProgress(const char *msg, float prog, void *cd); void updateProgress(const char *msg, float prog, void *cd);
@ -70,6 +77,7 @@ int do_cmake(int ac, char** av)
doc.SetName(cmDocumentationName); doc.SetName(cmDocumentationName);
doc.SetUsage(cmDocumentationUsage); doc.SetUsage(cmDocumentationUsage);
doc.SetDescription(cmDocumentationDescription); doc.SetDescription(cmDocumentationDescription);
doc.SetOptions(cmDocumentationOptions);
doc.SetCommands(&commands[0]); doc.SetCommands(&commands[0]);
doc.Print(ht, std::cout); doc.Print(ht, std::cout);
return 0; return 0;