From d4cb4e8c01ca5243c26a30e9ae78fc76c58345f7 Mon Sep 17 00:00:00 2001 From: Giorgos Verigakis Date: Tue, 14 Feb 2012 23:57:45 +0200 Subject: [PATCH] Allow multiple occurences of a flag in grouped --- clint/arguments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clint/arguments.py b/clint/arguments.py index e4f25a4..d13622a 100644 --- a/clint/arguments.py +++ b/clint/arguments.py @@ -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)