Merge "add a --title option to the report command"

This commit is contained in:
Jenkins 2017-03-15 20:23:06 +00:00 committed by Gerrit Code Review
commit 5fa63a0fca
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
features:
- |
Add a ``--title`` option to the report command.

View File

@ -145,6 +145,11 @@ def main(argv=sys.argv[1:]):
action='store_false',
help='do not show the source for notes',
)
do_report.add_argument(
'--title',
default='Release Notes',
help='set the main title of the generated report',
)
_build_query_arg_group(do_report)
do_report.set_defaults(func=report.report_cmd)

View File

@ -27,7 +27,7 @@ def report_cmd(args, conf):
ldr,
conf,
versions,
title='Release Notes',
title=args.title,
show_source=args.show_source,
)
if args.output: