From: Thomas Gerigk Date: Mon, 3 Apr 2006 17:55:16 +0000 (+0200) Subject: added help to 'close' X-Git-Tag: 1.0.0~199^2~5^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37c35bbba33cfafdde927c130fe04dbdcffa6851;p=be.git added help to 'close' --- diff --git a/becommands/close.py b/becommands/close.py index 04ae4ba..3c1eb43 100644 --- a/becommands/close.py +++ b/becommands/close.py @@ -29,7 +29,20 @@ def execute(args): u'closed' >>> tests.clean_up() """ + options, args = get_parser().parse_args(args) assert(len(args) == 1) bug = cmdutil.get_bug(args[0]) bug.status = "closed" bug.save() + +def get_parser(): + parser = cmdutil.CmdOptionParser("be close bug-id") + return parser + +longhelp=""" +Close the bug identified by bug-id. +""" + +def help(): + return get_parser().help_str() + longhelp +