File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
python/plugins/processing/tools Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,15 @@ def alglist(text=None):
55
55
def algorithmOptions (name ):
56
56
alg = Processing .getAlgorithm (name )
57
57
if alg is not None :
58
- s = ''
58
+ opts = ''
59
59
for param in alg .parameters :
60
60
if isinstance (param , ParameterSelection ):
61
- s += param .name + '(' + param .description + ')\n '
62
- i = 0
63
- for option in param .options :
64
- s += '\t ' + str (i ) + ' - ' + str (option ) + '\n '
65
- i += 1
66
- print (s )
61
+ opts += '{} ({})\n ' .format (param .name , param .description )
62
+ for option in enumerate (param .options ):
63
+ opts += '\t {} - {}\n ' .format (option [0 ], option [1 ])
64
+ print (opts )
67
65
else :
68
- print ('Algorithm not found' )
66
+ print ('Algorithm "{}" not found.' . format ( name ) )
69
67
70
68
71
69
def algorithmHelp (name ):
@@ -75,7 +73,7 @@ def algorithmHelp(name):
75
73
print (str (alg ))
76
74
algorithmOptions (name )
77
75
else :
78
- print ('Algorithm not found' )
76
+ print ('Algorithm "{}" not found.' . format ( name ) )
79
77
80
78
81
79
def runalg (algOrName , * args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments