2 The B{0install list} command-line interface.
5 # Copyright (C) 2011, Thomas Leonard
6 # See the README file for details, or visit http://0install.net.
8 from zeroinstall
.cmd
import UsageError
9 from zeroinstall
.injector
.iface_cache
import iface_cache
13 def add_options(parser
):
16 def handle(options
, args
):
18 matches
= iface_cache
.list_all_interfaces()
20 match
= args
[0].lower()
21 matches
= [i
for i
in iface_cache
.list_all_interfaces() if match
in i
.lower()]