From e766623a65807adea0729e48c7f5d1002ffb2575 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 21 Jul 2013 20:03:48 +0000 Subject: [PATCH] 3139: boolean command line options have to be specified as foo=true ... The solution was suggested by Doug Blank. svn: r22707 --- src/Utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Utils.py b/src/Utils.py index eca421629..ed91eb1f2 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -1173,9 +1173,7 @@ def rm_tempdir(path): shutil.rmtree(path) def cast_to_bool(val): - if val == str(True): - return True - return False + return val in ['True', 'true', _('True'), _('true'), '1'] # 3139 def get_type_converter(val): """