From e5baad5437abffc424eace9a02c0ba2d803251db Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@cnes.fr>
Date: Wed, 20 Jun 2018 17:35:54 +0200
Subject: [PATCH] BUG: Inverted logic

---
 .../CommandLine/src/otbWrapperCommandLineLauncher.cxx         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
index 48033a9949..35ded59cf5 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
-- 
GitLab