argparse list

Neal Becker ndbecker2 at gmail.com
Thu Sep 2 07:45:16 EDT 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

AltStyle によって変換されたページ (->オリジナル) /