aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.py
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2009-06-24 17:24:25 -0400
committerChris Ball <cjb@laptop.org>2009-06-24 17:24:25 -0400
commitd99caee28aaad87750571542f20bec2de091d5a0 (patch)
treeccefde44dbd41d1a469f42828a5176fbcfbc9290 /becommands/comment.py
parent665e64fbe8fea91f68be42cbbda79082d9a58c30 (diff)
parent37195a33108299504f8d37042dec06df0540d0d2 (diff)
downloadbugseverywhere-d99caee28aaad87750571542f20bec2de091d5a0.tar.gz
Merge with W. Trevor King's tree.
Diffstat (limited to 'becommands/comment.py')
-rw-r--r--becommands/comment.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 29e9f88..f7459dd 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -102,10 +102,14 @@ def execute(args, test=False):
body+='\n'
comment = parent.new_reply(body=body)
+ if options.content_type != None:
+ comment.content_type = options.content_type
bd.save()
def get_parser():
parser = cmdutil.CmdOptionParser("be comment ID [COMMENT]")
+ parser.add_option("-c", "--content-type", metavar="MIME", dest="content_type",
+ help="Set comment content-type (e.g. text/plain)", default=None)
return parser
longhelp="""