From 3e2c4de8330663c03120862e1ee2bc55db72bbcb Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 8 Jan 2014 01:48:39 +0100 Subject: [PATCH] Fix bug in parseOptions with values --- morss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morss.py b/morss.py index a3be6b8..4c934fe 100644 --- a/morss.py +++ b/morss.py @@ -119,10 +119,10 @@ class ParseOptions: if len(split) > 1: if split[0].lower() == 'true': self.options[split[0]] = True - if split[0].lower() == 'false': + elif split[0].lower() == 'false': self.options[split[0]] = False - - self.options[split[0]] = split[1] + else: + self.options[split[0]] = split[1] else: self.options[split[0]] = True