aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/show.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-23 07:40:11 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-23 07:40:11 -0500
commitb08c53301aa3d998ffe099a34b8b42414e741d75 (patch)
tree1d674d2cc1f2d6237a202f79c501df582d2d1369 /becommands/show.py
parent21f5f348b458c306fdfea3e33414f3c3071a292b (diff)
downloadbugseverywhere-b08c53301aa3d998ffe099a34b8b42414e741d75.tar.gz
`be show` now supports showing multiple bugs with a single call.
Diffstat (limited to 'becommands/show.py')
-rw-r--r--becommands/show.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/becommands/show.py b/becommands/show.py
index ab296e3..a2cd322 100644
--- a/becommands/show.py
+++ b/becommands/show.py
@@ -38,15 +38,13 @@ def execute(args):
options, args = get_parser().parse_args(args)
if len(args) == 0:
raise cmdutil.UserError("Please specify a bug id.")
- if len(args) > 1:
- help()
- raise cmdutil.UserError("Too many arguments.")
bd = bugdir.BugDir(loadNow=True)
- bug = bd.bug_from_shortname(args[0])
- print bug.string(show_comments=True)
+ for bugid in args:
+ bug = bd.bug_from_shortname(bugid)
+ print bug.string(show_comments=True)
def get_parser():
- parser = cmdutil.CmdOptionParser("be show bug-id")
+ parser = cmdutil.CmdOptionParser("be show bug-id [more bug-ids...]")
return parser
longhelp="""