Make BoolArg accept upper and lower case values

This commit is contained in:
Florian Festi 2017-02-23 17:19:23 +01:00
parent b440d1c767
commit e23d8034c5
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class ArgparseEdgeType:
class BoolArg:
def __call__(self, arg):
if not arg or arg in ("None", "0", "off", "False"):
if not arg or arg.lower() in ("none", "0", "off", "false"):
return False
return True