From: Jeremy Hylton Date: Tue, 4 Jun 2002 20:24:05 +0000 (+0000) Subject: Set repeat metadata for an option based on repeat local var not X-Git-Tag: v2.3c1~5478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a181ec07af8f0ab34d17be777d65935189df5054;p=python Set repeat metadata for an option based on repeat local var not constant. --- diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py index fe9b0d4d94..cb89e070d7 100644 --- a/Lib/distutils/fancy_getopt.py +++ b/Lib/distutils/fancy_getopt.py @@ -182,7 +182,7 @@ class FancyGetopt: ("invalid short option '%s': " "must a single character or None") % short - self.repeat[long] = 1 + self.repeat[long] = repeat self.long_opts.append(long) if long[-1] == '=': # option takes an argument?