summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.h
diff options
context:
space:
mode:
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