summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-08-19 19:42:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-08-19 19:42:48 (GMT)
commitd632b96841b43e5a5d27e2787018353e7388a423 (patch)
tree0bb1ae5ae5922362ada681ee831547cc28ad3434 /Source/cmDocumentation.h
parentd2e2ab72bfb2e21d189e0623880b2e376024a4bd (diff)
downloadCMake-d632b96841b43e5a5d27e2787018353e7388a423.zip
CMake-d632b96841b43e5a5d27e2787018353e7388a423.tar.gz
CMake-d632b96841b43e5a5d27e2787018353e7388a423.tar.bz2
BUG: fix 6647 arguments after -E should not be parsed by CMake
Diffstat (limited to 'Source/cmDocumentation.h')
-rw-r--r--Source/cmDocumentation.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index 526da58..c1b98d3 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -45,9 +45,12 @@ public:
* Check command line arguments for documentation options. Returns
* true if documentation options are found, and false otherwise.
* When true is returned, PrintRequestedDocumentation should be
- * called.
+ * called. exitOpt can be used for things like cmake -E, so that
+ * all arguments after the -E are ignored and not searched for
+ * help arguments.
*/
- bool CheckOptions(int argc, const char* const* argv);
+ bool CheckOptions(int argc, const char* const* argv,
+ const char* exitOpt =0);
/**
* Print help requested on the command line. Call after