From b770da2e90686f2330bb2328095634300c3cd0e2 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Fri, 25 Nov 2011 17:15:37 +0100
Subject: [PATCH] ENH: error in Help: we didn't display optionnal param

---
 Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
index 870e458d42..fa8914f265 100644
--- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
@@ -607,11 +607,7 @@ void CommandLineLauncher::DisplayHelp()
   for (unsigned int i = 0; i < nbOfParam; i++)
     {
     Parameter::Pointer param = m_Application->GetParameterByKey(appKeyList[i]);
-    // Check if mandatory parameter are present and have value
-    if (param->GetMandatory() == true)
-      {
-      std::cerr << this->DisplayParameterHelp(param, appKeyList[i]);
-      }
+    std::cerr << this->DisplayParameterHelp(param, appKeyList[i]);
     }
 }
 
-- 
GitLab