Fix handling of booleans in argument parsing
@@ -13,6 +13,8 @@ from kge.util.dump import add_dump_parsers, dump
def argparse_bool_type(v):
"Type for argparse that correctly treats Boolean values"
+ if isinstance(v, bool):
+ return v
if v.lower() in ("yes", "true", "t", "y", "1"):
return True
elif v.lower() in ("no", "false", "f", "n", "0"):
