#!/usr/bin/python
# Author: Jamie Strandboge <jamie@canonical.com>
# Copyright (C) 2009 Canonical, Ltd.
# License: GPLv3

import lpl_common
import optparse
import sys

lp = lpl_common.connect()

for num in sys.argv[1:]:
    bug = lp.bugs[num]
    print "%s..." % (num)

    # use this when the API changes
    #bug.unsubscribe(person=lp.me)
    bug.unsubscribe()
