argparse list

Neal Becker ndbecker2 at
Thu Sep 2 13:45:16 CEST 2010

I'm interested in using argparse to parse a string formatted as:

my_prog --option1=1,10,37

That is, a list of comma delimited values.  I guess nargs almost does it, 
but expects options to be space-delimited.

What would be the easiest approach?

More information about the Python-list mailing list