summaryrefslogtreecommitdiff
path: root/fancy_getopt.py
diff options
context:
space:
mode:
Diffstat (limited to 'fancy_getopt.py')
-rw-r--r--fancy_getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fancy_getopt.py b/fancy_getopt.py
index fe9b0d4d..cb89e070 100644
--- a/fancy_getopt.py
+++ b/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?