import re


def check_valid_arg(arg):
    """
    This function check if arg is a valid override

    Args:
        arg (str): a command-line argument
    Returns:
        valid (bool): True or False
    """
    if re.search(".+=.+", arg) is not None:
        return True
    elif arg.startswith("-") or arg.startswith("--"):
        return False
    else:
        # logger.warning(f"{arg} cannot be parsed!")
        return False