diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index fcc6d9deabd1c525d96d0bf27fbf7c803f0fbdfa..c093a749856335d3ab7191a25d435a0bcc548dd1 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -593,8 +593,11 @@ void CommandLineLauncher::DisplayHelp() m_MaxKeySize = std::string("progress").size(); for (unsigned int i = 0; i < nbOfParam; i++) { - if( m_MaxKeySize < appKeyList[i].size() ) - m_MaxKeySize = appKeyList[i].size(); + if (m_Application->GetParameterRole(appKeyList[i]) != Role_Output) + { + if( m_MaxKeySize < appKeyList[i].size() ) + m_MaxKeySize = appKeyList[i].size(); + } } //// progress report parameter @@ -602,12 +605,15 @@ void CommandLineLauncher::DisplayHelp() for(unsigned int i=0; i<m_MaxKeySize-std::string("progress").size(); i++) bigKey.append(" "); - std::cerr << " -"<<bigKey<<" <boolean> (Report progress) " << std::endl; + std::cerr << " -"<<bigKey<<" <boolean> Report progress " << std::endl; for (unsigned int i = 0; i < nbOfParam; i++) { - Parameter::Pointer param = m_Application->GetParameterByKey(appKeyList[i]); - std::cerr << this->DisplayParameterHelp(param, appKeyList[i]); + Parameter::Pointer param = m_Application->GetParameterByKey(appKeyList[i]); + if (param->GetRole() != Role_Output) + { + std::cerr << this->DisplayParameterHelp(param, appKeyList[i]); + } } }