projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8b325
)
added help to 'close'
author
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 17:55:16 +0000
(19:55 +0200)
committer
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 17:55:16 +0000
(19:55 +0200)
becommands/close.py
patch
|
blob
|
history
diff --git
a/becommands/close.py
b/becommands/close.py
index 04ae4ba012873cb8f9a969195cf314d8084f858e..3c1eb436c9094b00f8bb65022fc69cf51ae910f1 100644
(file)
--- 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
+