We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 0bbaa3b commit db916bcCopy full SHA for db916bc
python/plugins/processing/tools/general.py
@@ -64,7 +64,16 @@ def algorithmHelp(id):
64
if isinstance(p, QgsProcessingParameterEnum):
65
opts = []
66
for i, o in enumerate(p.options()):
67
- opts.append('\t\t{} - {}'.format(i, o))
+ opts.append('\t\t- {}: {}'.format(i, o))
68
+ print('\n\tAvailable values:\n{}'.format('\n'.join(opts)))
69
+
70
+ parameter_type = QgsApplication.processingRegistry().parameterType(p.type())
71
+ accepted_types = parameter_type.acceptedPythonTypes() if parameter_type is not None else []
72
+ if accepted_types:
73
+ opts = []
74
+ for t in accepted_types:
75
+ opts.append('\t\t- {}'.format(t))
76
+ print('\n\tAccepted data types:')
77
print('\n'.join(opts))
78
79
print('\n----------------')
0 commit comments