diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 19abe22bafdd2cfa2f84eb71bdc743ee92b0c154..8e71eb5e83bbcba19d95bdd81d4b11db7b55a80e 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -837,8 +837,8 @@ bool CommandLineLauncher::CheckUnicity() bool CommandLineLauncher::CheckParametersPrefix() { bool res = true; - // Check if the chain "-" appears in the expression - if (m_Expression.find("--") != std::string::npos ) + // Check if the chain " --" appears in the expression, could be a common mistake + if (m_Expression.find(" --") != std::string::npos ) { res = false; }