pass named parameters to python

Duncan Booth duncan.booth at invalid.invalid
Tue Feb 8 11:59:35 EST 2005


John Leslie wrote:

> I am converting a korn shell script to python and want to be able to
> pass named arguments into python e.g -firstparam -secondparam
> 
> Can this be done?
> 

See the module 'optparse'.
http://www.python.org/doc/current/lib/module-optparse.html



More information about the Python-list mailing list