Make BoolArg accept upper and lower case values
This commit is contained in:
parent
b440d1c767
commit
e23d8034c5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue