diff --git a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py index cdab55a9c180fa64ee830c3071270721515dfbfd..a80fba002323b415d6d4e58c6224a1991dc37efd 100755 --- a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py +++ b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py @@ -231,7 +231,7 @@ def rst_parameter_flags(app, key): if app.IsMandatory(key) and not app.HasValue(key): return "*Mandatory* " elif app.HasValue(key) and app.GetParameterType(key) != ParameterType_Group: - return "*Default value: {}* ".format(app.GetParameterValue(key)) + return "*Default value: {}* ".format(app.GetParameterAsString(key)) # get value as string to use the same formatting as the c++ api else: return ""