projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949cb83
)
added help to 'open'.
author
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 18:05:58 +0000
(20:05 +0200)
committer
Thomas Gerigk
<tgerigk@gmx.de>
Mon, 3 Apr 2006 18:05:58 +0000
(20:05 +0200)
(errhh... what is the status of a new bug?)
becommands/open.py
patch
|
blob
|
history
diff --git
a/becommands/open.py
b/becommands/open.py
index 19b891090c00bc537fc6ea0bc546c0aec1aa23a1..89067f81c4d7af14ce8412bc7dbe2c413849be39 100644
(file)
--- a/
becommands/open.py
+++ b/
becommands/open.py
@@
-29,7
+29,19
@@
def execute(args):
u'open'
>>> tests.clean_up()
"""
+ options, args = get_parser().parse_args(args)
assert(len(args) == 1)
bug = cmdutil.get_bug(args[0])
bug.status = "open"
bug.save()
+
+def get_parser():
+ parser = cmdutil.CmdOptionParser("be open BUG-ID")
+ return parser
+
+longhelp="""
+Mark a bug as 'open'.
+"""
+
+def help():
+ return get_parser().help_str() + longhelp