()
| 14 | |
| 15 | |
| 16 | def main() -> None: |
| 17 | parser = argparse.ArgumentParser() |
| 18 | parser.add_argument("infile", type=str, help="Path to the input file") |
| 19 | parser.add_argument("-o", "--outdir", type=str, help="Path to the output directory") |
| 20 | args = parser.parse_args() |
| 21 | |
| 22 | if not args.infile.endswith(".in"): |
| 23 | raise ValueError(f"Unexpected extension: {args.infile}") |
| 24 | |
| 25 | outdir_abs = os.path.join(os.getcwd(), args.outdir) |
| 26 | outfile = os.path.join( |
| 27 | outdir_abs, os.path.splitext(os.path.split(args.infile)[1])[0] |
| 28 | ) |
| 29 | |
| 30 | process_tempita(args.infile, outfile) |
| 31 | |
| 32 | |
| 33 | main() |
no test coverage detected