21 lines
465 B
Python
21 lines
465 B
Python
from __future__ import annotations
|
|
|
|
import argparse
|
|
from pathlib import Path
|
|
|
|
from common import read_json
|
|
from render_outline_docx import build_docx
|
|
|
|
|
|
def main() -> None:
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--outline", required=True)
|
|
parser.add_argument("--out", required=True)
|
|
args = parser.parse_args()
|
|
|
|
build_docx(read_json(Path(args.outline).resolve()), Path(args.out).resolve())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|