Commit ae4a1269 authored by Jeremy Hylton's avatar Jeremy Hylton

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

constant.
parent 86d1bd16
...@@ -182,7 +182,7 @@ class FancyGetopt: ...@@ -182,7 +182,7 @@ class FancyGetopt:
("invalid short option '%s': " ("invalid short option '%s': "
"must a single character or None") % short "must a single character or None") % short
self.repeat[long] = 1 self.repeat[long] = repeat
self.long_opts.append(long) self.long_opts.append(long)
if long[-1] == '=': # option takes an argument? if long[-1] == '=': # option takes an argument?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment