From 949cb83cf22e01f9b6dc7227effd1a091b9a6341 Mon Sep 17 00:00:00 2001 From: Thomas Gerigk Date: Mon, 3 Apr 2006 19:59:54 +0200 Subject: add help to 'inprogress'. (What does 'in-progress' mean to a bug?) --- becommands/inprogress.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'becommands/inprogress.py') diff --git a/becommands/inprogress.py b/becommands/inprogress.py index 214efa1..10d5cbd 100644 --- a/becommands/inprogress.py +++ b/becommands/inprogress.py @@ -29,7 +29,19 @@ def execute(args): u'in-progress' >>> tests.clean_up() """ + options, args = get_parser().parse_args(args) assert(len(args) == 1) bug = cmdutil.get_bug(args[0]) bug.status = "in-progress" bug.save() + +def get_parser(): + parser = cmdutil.CmdOptionParser("be inprogress BUG-ID") + return parser + +longhelp=""" +Mark a bug as 'in-progress'. +""" + +def help(): + return get_parser().help_str() + longhelp -- cgit