def true_or_false(arg: str):
    """ Return True or False flexibly based on the input. """
    if arg.lower() in ("yes", "true", "enable", "1", "on"):
        return True
    elif arg.lower() in ("no", "false", "disable", "0", "off"):
        return False
    else:
        return None