diff options
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r-- | libbe/cmdutil.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index 3c5baae..079601e 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -215,6 +215,15 @@ def bug_tree(dir=None): except bugdir.NoBugDir, e: raise UserErrorWrap(e) +def print_command_list(): + cmdlist = [] + print """Bugs Everywhere - Distributed bug tracking + +Supported commands""" + for name, module in iter_commands(): + cmdlist.append((name, module.__doc__)) + for name, desc in cmdlist: + print "be %s\n %s" % (name, desc) def _test(): import doctest |