]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed the '--license' option so it's officially an alias for '--licence',
authorGreg Ward <gward@python.net>
Fri, 21 Apr 2000 04:22:49 +0000 (04:22 +0000)
committerGreg Ward <gward@python.net>
Fri, 21 Apr 2000 04:22:49 +0000 (04:22 +0000)
and now actually works.

Lib/distutils/dist.py

index bedd9d252a35bcf0c27a4bf520325d7bcf973315..a20921277842defad575493138377247f8c532f4 100644 (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