A few beginning questions

Thomas Heller theller at python.net
Mon Jul 14 20:05:24 CEST 2003


mis6 at pitt.edu (Michele Simionato) writes:

> "richardc" <richardc at hmgcc.gov.uk> wrote in message news:<3f129a8a$1 at mail.hmgcc.gov.uk>...
>> Ive just started playing with Python and have a couple of questions.
>> 
>> Im looking for an agument parsing library (from the command line), Ive come
>> across optik and argtools.  What other ones are there are any of them any
>> good, is there a 'standard' lib for doing this.
>>
>
> optparse (a.k.a. optik) is great, whereas I never made my mind up to
> getopt. To "cure" getopt, I needed to define my own routines for
> argument parsing; after I started using optparse I had the satisfaction
> of erasing all of them ;)

I have not yet tried optparse. Is it able to parse Windows' style
command lines (use '/' instead of '-', ignore case of command line
options, use long options with a single '-' or '/')?

Thomas




More information about the Python-list mailing list