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.
--
n
New submission from Olivier Hervieu <[EMAIL PROTECTED]>:
Hi guys.. i found something strange on the behavior of OptionParser
If I have this sample code :
import sys
from optparse import OptionParser
if __name__ == '__main__':
parser = OptionParser()
parser.add_option("-p", "--p", help