def handle_commits_log_argument(terminal_pairs_as_tuples) ->bool:
    """
    Handle log argument.
    """
    logs = False
    for i, pair in enumerate(terminal_pairs_as_tuples):
        flag, value = pair[0], pair[1]
        if flag == 'log':
            if value:
                logs = True
            del terminal_pairs_as_tuples[i]
    return logs
