aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/new.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/new.py')
-rw-r--r--becommands/new.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/becommands/new.py b/becommands/new.py
index 15ee4a9..1c5246c 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -49,6 +49,10 @@ def execute(args, test=False):
bug.reporter = options.reporter
else:
bug.reporter = bug.creator
+ if options.assigned != None:
+ bug.assigned = options.assigned
+ elif bd.default_assignee != settings_object.EMPTY:
+ bug.assigned = bd.default_assignee
bd.save()
print "Created bug with ID %s" % bd.bug_shortname(bug)
@@ -56,6 +60,8 @@ def get_parser():
parser = cmdutil.CmdOptionParser("be new SUMMARY")
parser.add_option("-r", "--reporter", metavar="REPORTER", dest="reporter",
help="The user who reported the bug", default=None)
+ parser.add_option("-a", "--assigned", metavar="ASSIGNED", dest="assigned",
+ help="The developer in charge of the bug", default=None)
return parser
longhelp="""