Fixed console download progress indicator on Python 3
[zeroinstall/solver.git] / zeroinstall / cmd / destroy.py
blobf778e8cd48e214d7ce0596362549d50ba8d9dfd8
1 """
2 The B{0install destroy} command-line interface.
3 """
5 # Copyright (C) 2012, Thomas Leonard
6 # See the README file for details, or visit http://0install.net.
8 from zeroinstall.cmd import UsageError
10 syntax = "PET-NAME"
12 def add_options(parser):
13 pass
15 def handle(config, options, args):
16 if len(args) != 1:
17 raise UsageError()
19 pet_name = args[0]
21 app = config.app_mgr.lookup_app(pet_name)
22 app.destroy()