diff --git a/Utils/otbConcatenateImages.cxx b/Utils/otbConcatenateImages.cxx index ab8094954f2c032703114a502e51f74a711fae73..7a507b1f71402beeba35a431c5a6fa8f0b485b7d 100755 --- a/Utils/otbConcatenateImages.cxx +++ b/Utils/otbConcatenateImages.cxx @@ -27,7 +27,15 @@ int main(int argc, char* argv[] ) } catch( itk::ExceptionObject & err ) { - std::cerr << err << std::endl; + std::string descriptionException = err.GetDescription(); + if(descriptionException.find("ParseCommandLine(): Help Parser") != std::string::npos) + { + return EXIT_SUCCESS; + } + if(descriptionException.find("ParseCommandLine(): Version Parser") != std::string::npos) + { + return EXIT_SUCCESS; + } return EXIT_FAILURE; }