diff options
author | Thomas Gerigk <tgerigk@gmx.de> | 2006-04-03 19:55:16 +0200 |
---|---|---|
committer | Thomas Gerigk <tgerigk@gmx.de> | 2006-04-03 19:55:16 +0200 |
commit | 37c35bbba33cfafdde927c130fe04dbdcffa6851 (patch) | |
tree | e40f445b2d23dff4870f488c6992839d64b392e0 /becommands/close.py | |
parent | 6c8b325a4a4f895c9e3a75a8316517a138ebbaba (diff) | |
download | bugseverywhere-37c35bbba33cfafdde927c130fe04dbdcffa6851.tar.gz |
added help to 'close'
Diffstat (limited to 'becommands/close.py')
-rw-r--r-- | becommands/close.py | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |