Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add help string for parameter
  • Loading branch information
benoitblanc authored and nyalldawson committed Dec 9, 2021
1 parent 28ff415 commit 517aace
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python/plugins/processing/algs/gdal/ogr2ogr.py
Expand Up @@ -48,8 +48,11 @@ def initAlgorithm(self, config=None):
self.tr('Input layer'),
types=[QgsProcessing.TypeVector]))

self.addParameter(QgsProcessingParameterBoolean(self.CONVERT_ALL_LAYERS,
self.tr('Convert all layers from dataset'), defaultValue=False))
convert_all_layers_param = QgsProcessingParameterBoolean(self.CONVERT_ALL_LAYERS,
self.tr('Convert all layers from dataset'), defaultValue=False)
convert_all_layers_param.setHelp("Use convert all layers to convert a whole dataset. "
"Supported output formats for this option are GPKG and GML.")
self.addParameter(convert_all_layers_param)

options_param = QgsProcessingParameterString(self.OPTIONS,
self.tr('Additional creation options'),
Expand Down Expand Up @@ -105,7 +108,7 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True):
def shortHelpString(self):
return self.tr("The algorithm converts simple features data between file formats.\n\n"
"Use convert all layers to convert a whole dataset.\n"
"Supported output formats for this option are :\n"
"Supported output formats for this option are:\n"
"- GPKG\n"
"- GML"
)

0 comments on commit 517aace

Please sign in to comment.