From 02ac586e926ac24fa706b84a495e14c8980eb934 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 18 Jun 2013 16:37:45 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/argparser.py b/src/argparser.py index d3d84e6..b58f89f 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -289,11 +289,10 @@ class ArgParser(): if arg[0] == ArgParser.VARIADIC: varopt = self.opts[arg[1][4]] if varopt is not None: - additional = self.files if len(self.files) > 0 else [] if varopt[0] is None: - self.opts[arg[1][4]] = additional + self.opts[arg[1][4]] = self.files else: - self.opts[arg[1][4]] = varopt + additional + self.opts[arg[1][4]] = varopt + self.files self.files = [] break -- cgit v1.2.3-70-g09d2