Set repeat metadata for an option based on repeat local var not

constant.
This commit is contained in:
Jeremy Hylton 2002-06-04 20:24:05 +00:00
parent 332a146127
commit a181ec07af

View File

@ -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?