aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/show.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
commit4145df7bc4a4335c8ac5d123a8d02104f4e7dc55 (patch)
tree3b09842e31c1c4a646aec10c1212d362c314f0e6 /becommands/show.py
parent57ad245e927b1e5a9b230de3605431a041bb192e (diff)
parentb29e00c9cc5ef707719019728a25a71faa5a66a8 (diff)
downloadbugseverywhere-4145df7bc4a4335c8ac5d123a8d02104f4e7dc55.tar.gz
Merge help updates
Diffstat (limited to 'becommands/show.py')
-rw-r--r--becommands/show.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/becommands/show.py b/becommands/show.py
index db3bb90..8e83a1f 100644
--- a/becommands/show.py
+++ b/becommands/show.py
@@ -19,9 +19,10 @@ from libbe import bugdir, cmdutil, utility
import os
def execute(args):
- bug_dir = cmdutil.bug_tree()
+ options, args = get_parser().parse_args(args)
if len(args) !=1:
raise cmdutil.UserError("Please specify a bug id.")
+ bug_dir = cmdutil.bug_tree()
bug = cmdutil.get_bug(args[0], bug_dir)
print cmdutil.bug_summary(bug, list(bug_dir.list())).rstrip("\n")
if bug.time is None:
@@ -38,3 +39,14 @@ def execute(args):
comments.append(comment)
threaded = bugdir.thread_comments(comments)
cmdutil.print_threaded_comments(threaded, name_map)
+
+def get_parser():
+ parser = cmdutil.CmdOptionParser("be show bug-id")
+ return parser
+
+longhelp="""
+Show all information about a bug.
+"""
+
+def help():
+ return get_parser().help_str() + longhelp