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
2024-05-25 19:05:16 +02:00

28 lines
No EOL
637 B
Python

from argparse import ArgumentParser
from compiler import compile
class Arguments:
workdir: str
template: str
out: str
force: str
def __init__(self):
pass
def main():
parser = ArgumentParser()
parser.add_argument('workdir', action='store')
parser.add_argument('-t' , '--template', action='store')
parser.add_argument('-o', '--out', action='store')
parser.add_argument('-f', '--force', action='store_true', default=False)
args = Arguments()
parser.parse_args(namespace=args)
compile(args.workdir, args.template, args.out, args.force)
if __name__ == "__main__":
main()