projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37c35bb
)
add help to 'inprogress'.
author
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 17:59:54 +0000
(19:59 +0200)
committer
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 17:59:54 +0000
(19:59 +0200)
(What does 'in-progress' mean to a bug?)
becommands/inprogress.py
patch
|
blob
|
history
diff --git
a/becommands/inprogress.py
b/becommands/inprogress.py
index 214efa1bc873baeb06e159a9eb91b5c0e775c587..10d5cbd716a58f98e519f208c233dcf9397be2eb 100644
(file)
--- 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