aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/assign.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/assign.py
parent57ad245e927b1e5a9b230de3605431a041bb192e (diff)
parentb29e00c9cc5ef707719019728a25a71faa5a66a8 (diff)
downloadbugseverywhere-4145df7bc4a4335c8ac5d123a8d02104f4e7dc55.tar.gz
Merge help updates
Diffstat (limited to 'becommands/assign.py')
-rw-r--r--becommands/assign.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/becommands/assign.py b/becommands/assign.py
index f3db6aa..2308a12 100644
--- a/becommands/assign.py
+++ b/becommands/assign.py
@@ -37,6 +37,7 @@ def execute(args):
True
>>> tests.clean_up()
"""
+ options, args = get_parser().parse_args(args)
assert(len(args) in (0, 1, 2))
if len(args) == 0:
print help()
@@ -51,10 +52,11 @@ def execute(args):
bug.assigned = args[1]
bug.save()
+def get_parser():
+ parser = cmdutil.CmdOptionParser("be assign bug-id [assignee]")
+ return parser
-def help():
- return """be assign bug-id [assignee]
-
+longhelp = """
Assign a person to fix a bug.
By default, the bug is self-assigned. If an assignee is specified, the bug
@@ -65,3 +67,6 @@ appears in Creator fields.
To un-assign a bug, specify "none" for the assignee.
"""
+
+def help():
+ return get_parser().help_str() + longhelp