From: Thomas Gerigk Date: Mon, 3 Apr 2006 17:59:54 +0000 (+0200) Subject: add help to 'inprogress'. X-Git-Tag: 1.0.0~199^2~5^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=949cb83cf22e01f9b6dc7227effd1a091b9a6341;p=be.git add help to 'inprogress'. (What does 'in-progress' mean to a bug?) --- 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