aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/show.py
blob: 8b383861e035a46e72c56ee915bc71a4924ec049 (plain) (blame)
1
2
3
4
5
6
7
8
9
from libbe import bugdir, cmdutil
import os

def execute(args):
    bug_dir = bugdir.tree_root(os.getcwd())
    if len(args) !=1:
        raise cmdutil.UserError("Please specify a bug id.")
    print cmdutil.bug_summary(cmdutil.get_bug(args[0], bug_dir), 
                              list(bug_dir.list()))