Looking for for some ideas for argument processing

Hrvoje Niksic hniksic at srce.hr
Sun Jun 6 09:27:53 EDT 1999


"Thomas A. Bryan" <tbryan at arlut.utexas.edu> writes:

> 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.

Hey!  I've been meaning to write such a thing -- glad it's already
been written.

The chief problem with Python's getopt is that it doesn't support some 
nice features of GNU getopt, such as naming the options after the
arguments (e.g. wget URL -o outfile).




More information about the Python-list mailing list