Merge pull request #40 from verigak/develop

Allow multiple occurences of a flag in grouped
This commit is contained in:
Kenneth Reitz
2012-02-14 14:04:00 -08:00
+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)