def METHOD_NAME(args) -> dict:
    """Process arguments passed to CLI."""
    skip_next = False
    val_dict = {}
    for index, arg in enumerate(args):
        if skip_next:
            skip_next = False
            continue
        if "=" in arg:
            arg, value = arg.split("=")
        elif arg in COMMAND_ARGS:
            try:
                value = args[index + 1]
                skip_next = True
            except IndexError:
                error(f"Missing value for argument - {arg}")
            warning('Usage: "{USAGE}"')
            break
        if arg == "response_type":
            if value not in RESPONSE_TYPES:
                warning(f"Invalid response type request - {value}")
                warning(f"Choose from {RESPONSE_TYPES}")
                continue
        elif arg in {  # pylint: disable=confusing-consecutive-elif
            "error_code",
            "delay_by",
            "clear_after",
            "data_len",
        }:
            try:
                value = int(value)
            except ValueError:
                warning(f"Expected integer value for {arg}")
                continue
        val_dict[arg] = value
    return val_dict