Merge "add a --title option to the report command"
This commit is contained in:
commit
5fa63a0fca
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add a ``--title`` option to the report command.
|
|
@ -145,6 +145,11 @@ def main(argv=sys.argv[1:]):
|
||||||
action='store_false',
|
action='store_false',
|
||||||
help='do not show the source for notes',
|
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)
|
_build_query_arg_group(do_report)
|
||||||
do_report.set_defaults(func=report.report_cmd)
|
do_report.set_defaults(func=report.report_cmd)
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ def report_cmd(args, conf):
|
||||||
ldr,
|
ldr,
|
||||||
conf,
|
conf,
|
||||||
versions,
|
versions,
|
||||||
title='Release Notes',
|
title=args.title,
|
||||||
show_source=args.show_source,
|
show_source=args.show_source,
|
||||||
)
|
)
|
||||||
if args.output:
|
if args.output:
|
||||||
|
|
Loading…
Reference in New Issue