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 __future__
import print_function
10 from zeroinstall
.cmd
import UsageError
14 def add_options(parser
):
17 def handle(config
, options
, args
):
19 matches
= config
.iface_cache
.list_all_interfaces()
21 match
= args
[0].lower()
22 matches
= [i
for i
in config
.iface_cache
.list_all_interfaces() if match
in i
.lower()]