From: Greg Ward Date: Fri, 21 Apr 2000 04:22:49 +0000 (+0000) Subject: Fixed the '--license' option so it's officially an alias for '--licence', X-Git-Tag: v2.0b1~2001 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58ec6ede20d0b632f8325e1363aaa6e445ad61ef;p=thirdparty%2FPython%2Fcpython.git Fixed the '--license' option so it's officially an alias for '--licence', and now actually works. --- diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index bedd9d252a35..a20921277842 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -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