python getopt functionality

Fredrik Lundh fredrik at pythonware.com
Mon Oct 3 20:35:01 CEST 2005


"M.N.A.Smadi" wrote:

> I have a perl script that I need to port to python. The script takes
> input from the command line.  Is there a standard way of processing
> command line arguments based on the -flag preceeding the argument?

http://docs.python.org/lib/module-getopt.html
http://docs.python.org/lib/module-optparse.html

</F>






More information about the Python-list mailing list