Add template-options argument
For now, we just pass a link of keywords as a template context element.master
parent
cadb53e3b4
commit
37051f1f15
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue