mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Set repeat metadata for an option based on repeat local var not
constant.
This commit is contained in:
parent
332a146127
commit
a181ec07af
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user