def cmdline_options(argv: list, arg_dict: dict):
    """
    Parse command line arguments passed via 'argv'.
    :param argv: The list of command-line arguments as produced by sys.argv
    :param arg_dict: Dictionary of valid command-line argument entries of type {str: bool}.
    :return: arg_dict with args specified in argv True and unspecified args False
    """
    if len(argv) > 1:
        # Loop through options - skipping item 0 which is the name of the script
        for arg in argv[1:]:
            # Indicate which expected args that have been passed
            if arg in arg_dict:
                arg_dict[arg] = True

    return arg_dict