def str2bool(text: str) -> bool:
    """
    Parse a string into a bool.
    """
    text = text.lower()
    if text == "true":
        return True
    elif text == "false":
        return False
    else:
        raise ValueError(f"Cannot parse bool: '{text}'")