aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2006-04-01 14:55:34 -0500
committerAaron Bentley <aaron.bentley@utoronto.ca>2006-04-01 14:55:34 -0500
commit4dda0decb88c6bc987d3d55a1ac757104e9d0ba9 (patch)
tree881d7aacf79d64a73efa4603cf1a26dbc05c3813 /libbe/cmdutil.py
parent28da7287b32e070034b8c093938effeedb2eb54e (diff)
downloadbugseverywhere-4dda0decb88c6bc987d3d55a1ac757104e9d0ba9.tar.gz
Refactored the command listing
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 2f24490..b2c7f8a 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -167,6 +167,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