From 8b5d85bdbdd32df26892e7d56de821f91b7d323f Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 9 Nov 2011 18:16:14 +0100
Subject: [PATCH] ENH: In CommandLine side, Parameter belonging to a Group must
 be tested regarding it root mandatory status      - Activity status is
 irrelevant in commandLine side

---
 Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
index fb7fc25cbf..0b62affb6e 100644
--- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
@@ -338,7 +338,7 @@ CommandLineLauncher::ParamResultType CommandLineLauncher::LoadParameters()
     
     bool mustBeSet = false;
     if( param->GetMandatory() == true )
-      if( param->GetRoot()->GetActive() || param->IsRoot() )
+      if( param->GetRoot()->GetMandatory() || param->IsRoot() )
         mustBeSet = true;
 
     if( mustBeSet )
-- 
GitLab