summaryrefslogtreecommitdiff
path: root/fancy_getopt.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:24:05 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:24:05 +0000
commitae4a1269c661b5fb842d7d18911d5a0c19ded7dc (patch)
treedacd0e298edd1026c2aa73f094e566b2fb16a72e /fancy_getopt.py
parent86d1bd16c0053ee46f0e7d529dec144b611de3ed (diff)
downloadpython-setuptools-git-ae4a1269c661b5fb842d7d18911d5a0c19ded7dc.tar.gz
Set repeat metadata for an option based on repeat local var not
constant.
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?