summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrever Fischer <tdfischer@fedoraproject.org>2012-08-22 15:01:26 (GMT)
committerTrever Fischer <tdfischer@fedoraproject.org>2012-08-22 15:01:26 (GMT)
commitd15417964d1008c44a6f5b18273d61f13634470b (patch)
tree41a5cec464863d14a4bbc28bbc63f809f7bd6ad3
parenta78a912b288b4bed975af2bcbd9e54d35555e3b5 (diff)
downloadqa-bughandler-d15417964d1008c44a6f5b18273d61f13634470b.tar.gz
qa-bughandler-d15417964d1008c44a6f5b18273d61f13634470b.tar.xz
Add support for extra comment datav2
-rwxr-xr-xqa-bughandler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qa-bughandler.py b/qa-bughandler.py
index 74377b7..d468220 100755
--- a/qa-bughandler.py
+++ b/qa-bughandler.py
@@ -109,6 +109,8 @@ class Cli(object):
self.parser.add_argument('--log-file', dest='log_file', metavar='FILE',
help='send logging data to FILE, instead '
'of stderr.')
+ self.parser.add_argument('--comment', dest='comment', metavar='COMMENT',
+ help='Extra text to add to the update comment')
self.parser.add_argument('bug_id', help='bug identifier')
# run the parser through argv (implicit)
@@ -282,6 +284,7 @@ def main():
time=now.strftime('%H:%M:%S'),
timezone='UTC')
comment = comment.strip() + '\n\n'
+ comment = comment + settings.cli.args.comment + '\n\n'
# validate fields and add them to the comment.
for field in fields: