From 92d1eb0f752de1e09ed0c78e6ea81a8762f87822 Mon Sep 17 00:00:00 2001 From: Vadim Graboys Date: Tue, 27 Mar 2012 15:17:48 -0400 Subject: [PATCH] fix handling of multiple commandline args make commandline args override config file args when multiple=True instead of appending to config file args --- tornado/options.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tornado/options.py b/tornado/options.py index feae3292c..e12adb957 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -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) -- 2.47.2