diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
index 48033a99499483dea43aba0465c354e12648a2f7..35ded59cf53bcfc13ff7e55e8775b8dad661cbb2 100644
--- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
+++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
@@ -551,9 +551,9 @@ bool CommandLineLauncher::CheckMissingMandatoryParameter(const std::string & par
     if (m_Application->IsParameterMissing(paramKey))
       {
       std::cerr << "ERROR: Missing mandatory parameter -" << paramKey << "." << std::endl;
-      return true;
+      return false;
       }
-    return false;
+    return true;
 }
 
 void CommandLineLauncher::CheckUnusedParameter(const std::string & paramKey) const