def get_run_data_from_cmd(line):
    """Parser input data from a command line that looks like

    `command: python3 batch_runner.py -t benders -k cache -i s6.xml -v y -r 0`

    and put it into a dict.
    """
    words = line.split(" ")[3:]
    word_dict = {}
    for (i, word) in enumerate(words):
        if word.startswith("-"):
            word_dict[word] = words[i+1]

    return {
        "runName": word_dict["-i"],
        "runId": word_dict["-r"],
        "runType": word_dict["-k"],
        "runValue": word_dict["-v"]
    }