diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx index c3cd479b1791c7fdd14906dcffd7166f6b6d91b1..84a9112dbf2d24b454b5da29ec1343bcd57ff56d 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx @@ -844,14 +844,26 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer & if (type == ParameterType_OutputImage) { + OutputImageParameter* paramDown = dynamic_cast<OutputImageParameter*>(param.GetPointer()); + std::string defPixType("float"); + if (paramDown) + { + defPixType = OutputImageParameter::ConvertPixelTypeToString(paramDown->GetDefaultPixelType()); + } oss << " [pixel=uint8/uint16/int16/uint32/int32/float/double]"; - oss << " (default value is float)"; + oss << " (default value is " << defPixType <<")"; } if (type == ParameterType_ComplexOutputImage) { + ComplexOutputImageParameter* paramDown = dynamic_cast<ComplexOutputImageParameter*>(param.GetPointer()); + std::string defPixType("cfloat"); + if (paramDown) + { + defPixType = ComplexOutputImageParameter::ConvertPixelTypeToString(paramDown->GetDefaultComplexPixelType()); + } oss << " [pixel=cfloat/cdouble]"; - oss << " (default value is cfloat)"; + oss << " (default value is "<< defPixType <<")"; }