def parse_vt_command(opt_arg, arg):
    opt_dict = {}
    for opt_str in opt_arg[1:-1].split(','):
        opt_str = opt_str.strip()
        opt_list = opt_str.split('=',1)
        if 1 > len(opt_list):
            if opt_list[0].strip():
                opt_dict[opt_list[0]] = opt_list[1]
        else:
            if opt_list[0].strip():
                opt_dict[opt_list[0]] = None
    opt_dict['_args'] = arg[1:-1]
    return opt_dict
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/publishing/parse_latex.py/parse_vt_command/swapped operands of `>`