diff options
-rw-r--r-- | becommands/inprogress.py | 12 |
1 files changed, 12 insertions, 0 deletions
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 |