Looking for for some ideas for argument processing

Thomas A. Bryan tbryan at arlut.utexas.edu
Sun Jun 6 00:28:17 CEST 1999


cmedcoff at my-deja.com wrote:
> 
> I'm writing a script with is going to make heavy use of script
> arguments.  I'd like to hear some ideas on some ways to support this.

I usually just use Python's getopt or DPyGetOpt.

The first is in the standard library.

The second is modeled after Perl's GetOpt::Long, which is very  
flexible and supports many options.  DPyGetOpt is available at
python.org:
http://www.python.org/ftp/python/contrib/All/DPyGetOpt.py
http://www.python.org/ftp/python/contrib/All/DPyGetOpt.README




More information about the Python-list mailing list