From 70dc3c4cb1cb84b2629fcf234497655b1c07bca8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 17 Feb 2003 09:42:26 -0500 Subject: [PATCH] ENH: Added executable-specific command-line options. --- Source/cmakemain.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index f6d8dfa2f..b86dc0708 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -33,7 +33,7 @@ static const cmDocumentationEntry cmDocumentationName[] = static const cmDocumentationEntry cmDocumentationUsage[] = { {0, - "cmake ", 0}, + "cmake [options] ", 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;