Georg Brandl <[EMAIL PROTECTED]> added the comment:

This is not a bug.  By default, options in optparse take an argument --
therefore, the -y is taken as the argument to the -p option.

Use e.g. add_option(..., action='store_true') to specify an option that
doesn't take an argument.

----------
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4548>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to