aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/open.py
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2006-04-04 19:46:25 -0400
committerAaron Bentley <aaron.bentley@utoronto.ca>2006-04-04 19:46:25 -0400
commit2225a378d84f77c3512ee407af1aeb355b463084 (patch)
treebfd0ef4b969bfdcd723e405f69599107b0931bd9 /becommands/open.py
parent4dda0decb88c6bc987d3d55a1ac757104e9d0ba9 (diff)
parentc1f60d534fbc5496a0e3df2cb7c0d053e5fa40a8 (diff)
downloadbugseverywhere-2225a378d84f77c3512ee407af1aeb355b463084.tar.gz
Merge both lines
Diffstat (limited to 'becommands/open.py')
-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