diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
index fb7fc25cbfcaa9377e9580d6dc80dbf6933d6902..0b62affb6ec5236ae995929ba407734007c64512 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 )