add a --title option to the report command

Change-Id: I0ed8bbed995e637ef5526ae3fc8d7c3ac4214fb8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-03-15 11:17:30 -04:00
parent 33b135fe9a
commit 371fb0ff76
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: