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:
# Default set of options. Subclasses should override.
_short_options = "C:h"
_long_options = ["--configuration=", "--help"]
_long_options = ["configuration=", "help"]
def handle_option(self, opt, arg):
"""Handle one option. Subclasses should override.
......@@ -158,10 +158,10 @@ class ZEOOptions(Options):
_short_options = "a:C:f:h"
_long_options = [
"--address=",
"--configuration=",
"--filename=",
"--help",
"address=",
"configuration=",
"filename=",
"help",
]
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