Skip to content

Commit

Permalink
[processing] Include description in algorithmHelp output
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 16, 2018
1 parent 0e831da commit 0d21bd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/tools/general.py
Expand Up @@ -49,7 +49,10 @@ def algorithmHelp(id):
alg = QgsApplication.processingRegistry().algorithmById(id)
if alg is not None:
print('{} ({})\n'.format(alg.displayName(), alg.id()))
print(alg.shortHelpString())
if alg.shortDescription():
print(alg.shortDescription() + '\n')
if alg.shortHelpString():
print(alg.shortHelpString() + '\n')
print('\n----------------')
print('Input parameters')
print('----------------')
Expand Down

0 comments on commit 0d21bd0

Please sign in to comment.