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

and now actually works.
This commit is contained in:
Greg Ward 2000-04-21 04:22:49 +00:00
parent 1e7b509526
commit 58ec6ede20
1 changed files with 1 additions and 4 deletions

View File

@ -233,13 +233,10 @@ class Distribution:
self.commands = []
parser = FancyGetopt (self.global_options + self.display_options)
parser.set_negative_aliases (self.negative_opt)
parser.set_aliases ({'license': 'licence'})
args = parser.getopt (object=self)
option_order = parser.get_option_order()
# Handle aliases (license == licence)
if self.license:
self.licence = 1
# for display options we return immediately
if self.handle_display_options(option_order):
return