Re: Removing option from optparse

2008-05-12 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hello, I'm trying to figure out if the following is a bug or if I'm using the remove_option in the wrong way. #!/usr/bin/env python import optparse parser = optparse.OptionParser() parser.add_option("--test", help="This is a test option") parser.remove_option('--test'

Removing option from optparse

2008-05-12 Thread GustavoTabares
Hello, I'm trying to figure out if the following is a bug or if I'm using the remove_option in the wrong way. #!/usr/bin/env python import optparse parser = optparse.OptionParser() parser.add_option("--test", help="This is a test option") parser.remove_option('--test') print parser.parse_args()