66import sys
77from pathlib import Path
88
9- import document_placeholder .functions .date # noqa: F401 — register functions
10- import document_placeholder .functions .logic # noqa: F401
11- import document_placeholder .functions .math # noqa: F401
9+ import document_placeholder .functions .date # noqa: F401 — register functions
10+ import document_placeholder .functions .logic # noqa: F401
11+ import document_placeholder .functions .math # noqa: F401
1212import document_placeholder .functions .string # noqa: F401
1313import document_placeholder .functions .sql as sql_mod
1414from document_placeholder .config import Config
@@ -23,23 +23,32 @@ def main() -> None:
2323 description = "DocumentPlaceholder — fill Word templates using YAML configs" ,
2424 )
2525 parser .add_argument (
26- "-c" , "--config" , default = "template.yaml" ,
26+ "-c" ,
27+ "--config" ,
28+ default = "template.yaml" ,
2729 help = "YAML config path (default: template.yaml)" ,
2830 )
2931 parser .add_argument (
30- "-t" , "--template" , default = "template.docx" ,
32+ "-t" ,
33+ "--template" ,
34+ default = "template.docx" ,
3135 help = "Word template path (default: template.docx)" ,
3236 )
3337 parser .add_argument (
34- "-o" , "--output" , default = "output.docx" ,
38+ "-o" ,
39+ "--output" ,
40+ default = "output.docx" ,
3541 help = "Output file path (default: output.docx)" ,
3642 )
3743 parser .add_argument (
38- "--db" , default = "data.db" ,
44+ "--db" ,
45+ default = "data.db" ,
3946 help = "SQLite database path (default: data.db)" ,
4047 )
4148 parser .add_argument (
42- "-V" , "--version" , action = "version" ,
49+ "-V" ,
50+ "--version" ,
51+ action = "version" ,
4352 version = f"%(prog)s { __import__ ('document_placeholder' ).__version__ } " ,
4453 )
4554 args = parser .parse_args ()
0 commit comments