mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Set repeat metadata for an option based on repeat local var not
constant.
This commit is contained in:
parent
332a146127
commit
a181ec07af
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue