mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #40 from verigak/develop
Allow multiple occurences of a flag in grouped
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user