aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/open.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
commit4145df7bc4a4335c8ac5d123a8d02104f4e7dc55 (patch)
tree3b09842e31c1c4a646aec10c1212d362c314f0e6 /becommands/open.py
parent57ad245e927b1e5a9b230de3605431a041bb192e (diff)
parentb29e00c9cc5ef707719019728a25a71faa5a66a8 (diff)
downloadbugseverywhere-4145df7bc4a4335c8ac5d123a8d02104f4e7dc55.tar.gz
Merge help updates
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