Merge pull request #484 from vadimg/master
make commandline args override config file args when multiple=True
This commit is contained in:
commit
de3cf92a96
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue