def argparser_for_method(prog, method):
    parser = argparse.ArgumentParser(prog=prog)

    for parameter in method['parameters']:
        if parameter['name'] == 'key':
            continue

        paramargs = {
            'type': PARAMETER_TYPEMAP[parameter['type']],
            'required': not parameter['optional'],
        }
        if parameter in 'description':
            paramargs['help'] = parameter['description']

        name = '--%s' % parameter['name']
        parser.add_argument(name, **paramargs)

    return parser
dataset/ETHPy150Open UberEnt/SteamCLI/steamcli.py/argparser_for_method/swapped operands of `in`