From 564c3be682f4c1cf46ff78dbc093d3730e341927 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Jun 2013 04:21:24 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 6 +++--- 1 file 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 -- cgit v1.2.3-70-g09d2