diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index ae494704266a3f3490130839ab56eb9fc5217a6e..644ba3029203414c165beaa1c192fa3b8c4be8f8 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -363,6 +363,9 @@ CommandLineLauncher::ParamResultType CommandLineLauncher::LoadParameters() const bool paramExists(m_Parser->IsAttributExists(std::string("-").append(paramKey), m_Expression)); + // Ensure that the parameter is enabled + m_Application->EnableParameter(paramKey); + // if param is a Group, dont do anything, ParamGroup dont have values if (type != ParameterType_Group) {