optparse: best way

Hrvoje Niksic hniksic at xemacs.org
Tue Jun 8 07:30:01 EDT 2010


Thomas Jollans <thomas at jollans.com> writes:

> UNIX and GNU recommendations. I've never actually heard of optparser,
> but I'd expect it to have the usual limitations:

Hiral probably meant to write "optparse", which supports GNU-style
options in a fairly standard and straightforward way.  Which includes
that defining a "-o"/"--output-format" option that takes an argument
allows you to write one of "-o exe", "-oexe", "--output-format=exe", or
"--output-format exe".

My recommendation is to use -o, and -oexe will work just fine.



More information about the Python-list mailing list