Tweaks to the cli.py
Some checks failed
CI / test (push) Failing after 53s
Lint / test (push) Successful in 26s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-11-25 17:45:44 +11:00
parent b33e25a35f
commit 371762fa43
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -19,7 +19,7 @@ def _build_arg_parser() -> argparse.ArgumentParser:
) )
ap.add_argument( ap.add_argument(
"config", "config",
help="Path to the source configuration file (TOML or INI-style).", help="Path to the source configuration file (TOML, YAML, JSON or INI-style).",
) )
ap.add_argument( ap.add_argument(
"-r", "-r",
@ -71,14 +71,11 @@ def _main(argv: list[str] | None = None) -> int:
print("# config.j2") print("# config.j2")
print(template_str, end="") print(template_str, end="")
return 0 return True
def main() -> None: def main() -> None:
""" """
Console-script entry point. Console-script entry point.
Defined in pyproject.toml as:
jinjaturtle = jinjaturtle.cli:main
""" """
raise SystemExit(_main(sys.argv[1:])) raise SystemExit(_main(sys.argv[1:]))