diff options
author | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-04-04 19:46:25 -0400 |
---|---|---|
committer | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-04-04 19:46:25 -0400 |
commit | 2225a378d84f77c3512ee407af1aeb355b463084 (patch) | |
tree | bfd0ef4b969bfdcd723e405f69599107b0931bd9 /becommands/assign.py | |
parent | 4dda0decb88c6bc987d3d55a1ac757104e9d0ba9 (diff) | |
parent | c1f60d534fbc5496a0e3df2cb7c0d053e5fa40a8 (diff) | |
download | bugseverywhere-2225a378d84f77c3512ee407af1aeb355b463084.tar.gz |
Merge both lines
Diffstat (limited to 'becommands/assign.py')
-rw-r--r-- | becommands/assign.py | 11 |
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 |