You could use http://docs.python.org/lib/module-optparse.html -- http://mail.python.org/mailman/listinfo/python-list
- Pythonically extract data from a list of tuples (getopt) Mark Reed
- Re: Pythonically extract data from a list of tuples (getopt... Mike Kent