From 37051f1f158bf62053ec3306759fb77030515f73 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Sat, 25 Jul 2020 14:51:10 +0200 Subject: [PATCH] Add template-options argument For now, we just pass a link of keywords as a template context element. --- lokrez/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lokrez/__init__.py b/lokrez/__init__.py index 9b67506..8f48964 100644 --- a/lokrez/__init__.py +++ b/lokrez/__init__.py @@ -103,6 +103,12 @@ def main(): default = "rebootlyon2020", 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( "--lkrz-file", "-f", type = pathlib.Path, @@ -287,6 +293,8 @@ def main(): key = lambda p: p.placement, ), "dir_res_ssbu": dir_res_ssbu, + "dir_template": str(args.templatesdir / args.template), + "options": args.template_options, } rv = export.generate_outfile(