When second argument is nil it still considered as two arguments call, however 2nd one is expected to be string.
-- the second argument is optional and defines the type (string by default)
['pool_var'] = {
['get_value'] = function(task, args)
- return task:get_mempool():get_variable(args[1], args[2]),(args[2] or 'string')
+ local type = args[2] or 'string'
+ return task:get_mempool():get_variable(args[1], type),(type)
end,
['description'] = [[Get specific pool var. The first argument must be variable name,
the second argument is optional and defines the type (string by default)]],