]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fix handling of multiple commandline args 484/head
authorVadim Graboys <vadim@chartbeat.com>
Tue, 27 Mar 2012 19:17:48 +0000 (15:17 -0400)
committerVadim Graboys <vadim@chartbeat.com>
Tue, 27 Mar 2012 19:21:20 +0000 (15:21 -0400)
make commandline args override config file args when multiple=True
instead of appending to config file args

tornado/options.py

index feae3292cdf87d7a4ea9b2a8f2ed4ac22a37effe..e12adb957ea395da42abadd073fbad418f3ca2eb 100644 (file)
@@ -223,8 +223,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)