I'm using the python optparse module in my program, and I'm having trouble finding an easy way to parse an option that contains a list of values. For example:
--groups one,two,three.
I'd like to be able to access these values in a list format as options.groups[]. Is there an optparse option to convert comma seperated values into a list? or do I have to do this manually?