Specifying listify on an option will cause it to be parsed as a list.
Use listdelim to specify the delimiter (defaults to ',')
Examples, assuming you had the following option:
add_option("--test","test", type="int", listify=True)
Command line:
--test 1 results in [1]
--test 1,2,3 results in [1,2,3]
Config file:
test=1 results in [1]
test="1,2,3" results in [1,2,3]
test=[1,4,9] results in [1,4,9]
9.9 KiB
Executable File
9.9 KiB
Executable File