added check and diff mode control to console

also expanded mk_boolean to allow for 'on/off'
fixes #16815
This commit is contained in:
Brian Coca 2016-07-25 08:03:16 -04:00
parent 2219339dd5
commit 363596c67f
2 changed files with 17 additions and 1 deletions

View file

@ -34,7 +34,7 @@ def mk_boolean(value):
if value is None:
return False
val = str(value)
if val.lower() in [ "true", "t", "y", "1", "yes" ]:
if val.lower() in [ "true", "t", "y", "1", "yes", "on" ]:
return True
else:
return False