aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorThomas Gerigk <tgerigk@gmx.de>2006-04-03 20:05:58 +0200
committerThomas Gerigk <tgerigk@gmx.de>2006-04-03 20:05:58 +0200
commit755256e88d53ab478b8a6f54280bd2d6d01bca59 (patch)
treeb451e56d3bf493bd5a740e0ee1a14366e92e9aa4 /becommands
parent949cb83cf22e01f9b6dc7227effd1a091b9a6341 (diff)
downloadbugseverywhere-755256e88d53ab478b8a6f54280bd2d6d01bca59.tar.gz
added help to 'open'.
(errhh... what is the status of a new bug?)
Diffstat (limited to 'becommands')
-rw-r--r--becommands/open.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/becommands/open.py b/becommands/open.py
index 19b8910..89067f8 100644
--- 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