Add template-options argument

For now, we just pass a link of keywords as a template context element.
master
Lertsenem 2020-07-25 14:51:10 +02:00
parent cadb53e3b4
commit 37051f1f15
1 changed files with 8 additions and 0 deletions

View File

@ -103,6 +103,12 @@ def main():
default = "rebootlyon2020", default = "rebootlyon2020",
help = "The local result template to use", help = "The local result template to use",
) )
top8_parser.add_argument(
"--template-options", "-O",
action = "append",
default = [],
help = "Template-specific options",
)
top8_parser.add_argument( top8_parser.add_argument(
"--lkrz-file", "-f", "--lkrz-file", "-f",
type = pathlib.Path, type = pathlib.Path,
@ -287,6 +293,8 @@ def main():
key = lambda p: p.placement, key = lambda p: p.placement,
), ),
"dir_res_ssbu": dir_res_ssbu, "dir_res_ssbu": dir_res_ssbu,
"dir_template": str(args.templatesdir / args.template),
"options": args.template_options,
} }
rv = export.generate_outfile( rv = export.generate_outfile(