Skip to content

Commit 0d21bd0

Browse files
committed
[processing] Include description in algorithmHelp output
1 parent 0e831da commit 0d21bd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/plugins/processing/tools/general.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def algorithmHelp(id):
4949
alg = QgsApplication.processingRegistry().algorithmById(id)
5050
if alg is not None:
5151
print('{} ({})\n'.format(alg.displayName(), alg.id()))
52-
print(alg.shortHelpString())
52+
if alg.shortDescription():
53+
print(alg.shortDescription() + '\n')
54+
if alg.shortHelpString():
55+
print(alg.shortHelpString() + '\n')
5356
print('\n----------------')
5457
print('Input parameters')
5558
print('----------------')

0 commit comments

Comments
 (0)