2 The B{0install apps} command-line interface.
5 # Copyright (C) 2012, Thomas Leonard
6 # See the README file for details, or visit http://0install.net.
8 from __future__
import print_function
12 from zeroinstall
.cmd
import UsageError
13 from zeroinstall
import helpers
17 def add_options(parser
):
20 def handle(config
, options
, args
):
24 result
= helpers
.get_selections_gui(None, ['--apps'], use_gui
= options
.gui
)
25 if result
is helpers
.DontUseGUI
:
26 apps
= config
.app_mgr
.list_apps()
31 print('No apps. Use "0install add" to add some.')