From a181ec07af8f0ab34d17be777d65935189df5054 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 4 Jun 2002 20:24:05 +0000 Subject: Set repeat metadata for an option based on repeat local var not constant. --- Lib/distutils/fancy_getopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py index fe9b0d4..cb89e07 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? -- cgit v0.12