Commit 7ee4ef65 authored by Greg Ward's avatar Greg Ward

Fixed the '--license' option so it's officially an alias for '--licence',

and now actually works.
parent fe34d8a9
...@@ -233,13 +233,10 @@ class Distribution: ...@@ -233,13 +233,10 @@ class Distribution:
self.commands = [] self.commands = []
parser = FancyGetopt (self.global_options + self.display_options) parser = FancyGetopt (self.global_options + self.display_options)
parser.set_negative_aliases (self.negative_opt) parser.set_negative_aliases (self.negative_opt)
parser.set_aliases ({'license': 'licence'})
args = parser.getopt (object=self) args = parser.getopt (object=self)
option_order = parser.get_option_order() option_order = parser.get_option_order()
# Handle aliases (license == licence)
if self.license:
self.licence = 1
# for display options we return immediately # for display options we return immediately
if self.handle_display_options(option_order): if self.handle_display_options(option_order):
return return
......
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