

def process_find_links(option, option_str, option_value, parser, builder):
    repos = getattr(parser.values, option.dest, [])
    repo = Fetcher([option_value])
    if (repo not in repos):
        repos.append(repo)
    setattr(parser.values, option.dest, repos)
    builder.add_repository(option_value)

dataset/ETHPy150Open pantsbuild/pex/pex/bin/pex.py process_find_links/original