def METHOD_NAME(self, value, param, ctx):
    ids = []
    str_ids = value.split(",")
    for bugzilla_id in str_ids:
        try:
            ids.append(int(bugzilla_id))
        except ValueError:
            raise click.BadParameter(
                "cannot parse non-integer bugzilla ID. Please use following "
                "format: id[,id]"
            )
    return ids