aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-21 04:21:24 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-21 04:21:24 +0200
commit564c3be682f4c1cf46ff78dbc093d3730e341927 (patch)
tree02e765026e536e487b39785fcac7d5319dc5652f /src
parentm (diff)
downloadargparser-564c3be682f4c1cf46ff78dbc093d3730e341927.tar.gz
argparser-564c3be682f4c1cf46ff78dbc093d3730e341927.tar.bz2
argparser-564c3be682f4c1cf46ff78dbc093d3730e341927.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/argparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argparser.py b/src/argparser.py
index c56b482..09cbfe6 100644
--- a/src/argparser.py
+++ b/src/argparser.py
@@ -288,12 +288,12 @@ class ArgParser():
for arg in self.__options:
if arg[0] == ArgParser.VARIADIC:
- varopt = self.opts[arg[1][4]]
+ varopt = self.opts[arg[4]]
if varopt is not None:
if varopt[0] is None:
- self.opts[arg[1][4]] = self.files
+ self.opts[arg[4]] = self.files
else:
- self.opts[arg[1][4]] = varopt + self.files
+ self.opts[arg[4]] = varopt + self.files
self.files = []
break