Peter Otten wrote:
Pat wrote:
The question was it possible to add a simple flag like 'd-' to optparse
with no other parameters?
Do you mean "d-" or "-d"? If the latter, what's wrong with Robert Kern's
answer?
Peter
I mean "-d" since that's what Unix commands expect for flags.
My sole intention for the "-d" was to put my program into debug mode so
that while I'm using the Wing IDE, I can debug my program using just
one child process (instead of dozens) without having to change a
constant within my program. I haven't figured out a way to debug
multiple child processes in Wing. But, I confess, I haven't been very
vigorous in learning how.
My other intention was to learn the optparse module just for the sake of
learning.
--
http://mail.python.org/mailman/listinfo/python-list