Any interest in a getoption.py?

Bob Hepple bob_hepple at yahoo.com
Sun Feb 23 05:17:21 EST 2003


Well, I wrote an equivalent of getoption for python. It does more or
less what popt does, but it's not specific to linux, it's in pure
python and I can put it out on whatever license.

It does some nice stuff apart from parsing the user's short and long
options - it can:

re-sort options and arguments
recognise - and -- as special cases
generate help automatically
write out python code to process the options
write out a skeleton man page with the options nicely formatted
(docbook too)

Is there any interest?

What license would please the community?

Should I distutil it?

Where would I put it?

Is anyone interested in doing a peer-review?

There are some enhancements I could put in for checking and expanding
integer and real numbers:

eg.

-i 1024k -> 1024*1000
-i 1024K -> 1024*1024
etc for m, M 
Cheers


Bob




More information about the Python-list mailing list