This repository has been archived on 2025-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
blog-software/__main__.py

28 lines
No EOL
579 B
Python

from argparse import ArgumentParser
from dataclasses import dataclass
from compiler import compile
@dataclass
class Arguments:
templatedir: str
workdir: str
outdir: str
def __init__(self):
pass
def main():
parser = ArgumentParser()
parser.add_argument('templatedir', action='store')
parser.add_argument('workdir', action='store')
parser.add_argument('outdir', action='store')
args = Arguments()
parser.parse_args(namespace=args)
compile(args.templatedir, args.workdir, args.outdir)
if __name__ == "__main__":
main()