Merge pull request #484 from vadimg/master

make commandline args override config file args when multiple=True
This commit is contained in:
bdarnell 2012-05-06 21:36:39 -07:00
commit de3cf92a96
1 changed files with 1 additions and 2 deletions

View File

@ -232,8 +232,7 @@ class _Option(object):
str: self._parse_string,
}.get(self.type, self.type)
if self.multiple:
if self._value is None:
self._value = []
self._value = []
for part in value.split(","):
if self.type in (int, long):
# allow ranges of the form X:Y (inclusive at both ends)