diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-08-19 19:42:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-08-19 19:42:48 (GMT) |
commit | d632b96841b43e5a5d27e2787018353e7388a423 (patch) | |
tree | 0bb1ae5ae5922362ada681ee831547cc28ad3434 /Source/cmDocumentation.cxx | |
parent | d2e2ab72bfb2e21d189e0623880b2e376024a4bd (diff) | |
download | CMake-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.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 72a8192..8b6f69e 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -656,7 +656,8 @@ cmDocumentation::Form cmDocumentation::GetFormFromFilename( } //---------------------------------------------------------------------------- -bool cmDocumentation::CheckOptions(int argc, const char* const* argv) +bool cmDocumentation::CheckOptions(int argc, const char* const* argv, + const char* exitOpt) { // Providing zero arguments gives usage information. if(argc == 1) @@ -673,6 +674,10 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv) bool result = false; for(int i=1; i < argc; ++i) { + if(exitOpt && strcmp(argv[i], exitOpt) == 0) + { + return result; + } RequestedHelpItem help; // Check if this is a supported help option. if((strcmp(argv[i], "-help") == 0) || |