diff --git a/Code/Common/otbCommandLineArgumentParser.cxx b/Code/Common/otbCommandLineArgumentParser.cxx index f18b9f975ccb9117a11e96b2ac8646e68968627b..972bf3dc308010696c908042a01da3658de5b392 100755 --- a/Code/Common/otbCommandLineArgumentParser.cxx +++ b/Code/Common/otbCommandLineArgumentParser.cxx @@ -60,6 +60,12 @@ CommandLineArgumentParseResult { return (this->IsOptionPresent("--OutputImage")); } +bool +CommandLineArgumentParseResult +::IsOptionOTBTestingPresent(void)const +{ + return (this->IsOptionPresent("--OTBTesting")); +} std::string CommandLineArgumentParseResult diff --git a/Code/Common/otbCommandLineArgumentParser.h b/Code/Common/otbCommandLineArgumentParser.h index f822b94eada38587c5e848fb48e8295541effdc9..c3e4bc124f62329b859f85fdee7dcf1dc46d0b41 100755 --- a/Code/Common/otbCommandLineArgumentParser.h +++ b/Code/Common/otbCommandLineArgumentParser.h @@ -62,6 +62,9 @@ public: /** Check whether the output image option was passed in or not */ bool IsOptionOutputImagePresent(void) const; + + /** Check whether the OTBTesting option was passed in or not */ + bool IsOptionOTBTestingPresent(void)const; /** Get one of the parameters to the option */ // const char *GetOptionParameter(const char *option, unsigned int number = 0);