Commit d703ed44 authored by Guido van Rossum's avatar Guido van Rossum

Ouch! I never tested the long options. The leading double dash

should not be in the list of options passed to getopt()!
parent 35209640
...@@ -94,7 +94,7 @@ class Options: ...@@ -94,7 +94,7 @@ class Options:
# Default set of options. Subclasses should override. # Default set of options. Subclasses should override.
_short_options = "C:h" _short_options = "C:h"
_long_options = ["--configuration=", "--help"] _long_options = ["configuration=", "help"]
def handle_option(self, opt, arg): def handle_option(self, opt, arg):
"""Handle one option. Subclasses should override. """Handle one option. Subclasses should override.
...@@ -158,10 +158,10 @@ class ZEOOptions(Options): ...@@ -158,10 +158,10 @@ class ZEOOptions(Options):
_short_options = "a:C:f:h" _short_options = "a:C:f:h"
_long_options = [ _long_options = [
"--address=", "address=",
"--configuration=", "configuration=",
"--filename=", "filename=",
"--help", "help",
] ]
def handle_option(self, opt, arg): def handle_option(self, opt, arg):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment