diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx index 0af9b9afc04e6f272194224570c54b3c92e041a4..1f9820268a65977d7822a50d15e5bec96f9f46ff 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx @@ -789,7 +789,13 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer & if(m_Application->HasValue(paramKey)) { - oss<<", default value is "<<m_Application->GetParameterAsString(paramKey); + if ( m_Application->GetParameterAsString(paramKey).empty() ) + oss<<", no default value"; + else + { + oss<<", default value is " + <<m_Application->GetParameterAsString(paramKey); + } } oss<<")"; }