diff options
author | Greg Ward <gward@python.net> | 2000-04-21 04:22:49 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-04-21 04:22:49 (GMT) |
commit | 58ec6ede20d0b632f8325e1363aaa6e445ad61ef (patch) | |
tree | 857a9fc0b44ffd373eaf8302c4dbc5bc72b51f14 /Lib/distutils/dist.py | |
parent | 1e7b5095268e45139992703c9ab4360c57b1c49a (diff) | |
download | cpython-58ec6ede20d0b632f8325e1363aaa6e445ad61ef.zip cpython-58ec6ede20d0b632f8325e1363aaa6e445ad61ef.tar.gz cpython-58ec6ede20d0b632f8325e1363aaa6e445ad61ef.tar.bz2 |
Fixed the '--license' option so it's officially an alias for '--licence',
and now actually works.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r-- | Lib/distutils/dist.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index bedd9d2..a209212 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 |