getopt: where's da dicts?????

Aahz Maruch aahz at netcom.com
Tue Oct 19 15:11:25 EDT 1999


In article <14348.40578.648039.972783 at weyr.cnri.reston.va.us>,
Fred L. Drake, Jr. <fdrake at acm.org> wrote:
>
>  It's those flags with optional arguments that hold the highest
>possibility of confusion for users.  Is 'foo -v 1' a command with one
>option and one parameter, or is it a command with one option that
>takes a value?  If the value is optional, it's not clear.  I don't
>know what the "right" way to deal with it is, perhaps, but not using
>optional values for options seems the safest.

Depends whether you allow "-v 1" or "-v1".
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>      http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6  (if you want to know, do some research)




More information about the Python-list mailing list