aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/argparser.py5
1 files 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