ConfigParser.getList

Non-strict method to get a multi-line value. The existence or non-existence of the key is returned. If the configuration key cannot be found, the output list remains unchanged.

If the value is a single line, the output list has one element.

class ConfigParser
T[]
getList
(
T = istring
)

Parameters

category cstring

category to get key from

key cstring

key whose value is to be got

default_value T[]

default list to use if missing in the config

Return Value

Type: T[]

the list of values corresponding to the given category + key combination if such a combination exists, the given list of default values otherwise

Meta