aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-12-02 19:23:04 -0500
committerW. Trevor King <wking@drexel.edu>2008-12-02 19:23:04 -0500
commit57a55f2e33a54b81ab48af6ca8e82bb4dabc2265 (patch)
tree7a495262c96e41da298a3a386c30d01bcb2932fe /becommands
parent404a76f0d49e36b7cc475928d7d665a56d83cadb (diff)
downloadbugseverywhere-57a55f2e33a54b81ab48af6ca8e82bb4dabc2265.tar.gz
Added support for bug reporter field.
Closes e2f6514c-5f9f-4734-a537-daf3fbe7e9a0
Diffstat (limited to 'becommands')
-rw-r--r--becommands/new.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/becommands/new.py b/becommands/new.py
index 69ff5b8..dec40cb 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -45,11 +45,17 @@ def execute(args, test=False):
raise cmdutil.UsageError("Please supply a summary message")
bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
bug = bd.new_bug(summary=args[0])
+ if options.reporter != None:
+ bug.reporter = options.reporter
+ else:
+ bug.reporter = bug.creator
bd.save()
print "Created bug with ID %s" % bd.bug_shortname(bug)
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)
return parser
longhelp="""