(config_arg: str)
| 471 | |
| 472 | |
| 473 | def _load_config(config_arg: str) -> dict[str, Any]: |
| 474 | if config_arg == "-": |
| 475 | return json.loads(sys.stdin.read()) |
| 476 | return json.loads(Path(config_arg).read_text(encoding="utf-8")) |
| 477 | |
| 478 | |
| 479 | def build_parser() -> argparse.ArgumentParser: |