Allow multiple occurences of a flag in grouped

This commit is contained in:
Giorgos Verigakis
2012-02-14 23:57:45 +02:00
parent 0378771f94
commit d4cb4e8c01
+1 -1
View File
@@ -241,7 +241,7 @@ class Args(object):
for arg in self.all:
if arg.startswith('-'):
_current_group = arg
collection[arg] = Args(no_argv=True)
collection.setdefault(arg, Args(no_argv=True))
else:
if _current_group:
collection[_current_group]._args.append(arg)