diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx index 7fba8d1b123b0c7bd8cbda2ea08406ca5fed49a8..9dae6317d68dc3ad732f503c9efa6ed408db273d 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx @@ -900,7 +900,7 @@ bool CommandLineLauncher::CheckParametersPrefix() // Check if the chain " --" appears in the args, could be a common mistake for (std::vector<std::string>::iterator it = m_VExpression.begin(); it != m_VExpression.end(); ++it) { - if (it->find("--") != std::string::npos ) + if (it->compare(0, 2, "--") == 0 ) { return false; }