From 371762fa4337d4f693709e6b88e418c08cc129aa Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 25 Nov 2025 17:45:44 +1100 Subject: [PATCH] Tweaks to the cli.py --- src/jinjaturtle/cli.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jinjaturtle/cli.py b/src/jinjaturtle/cli.py index 5c59a87..582a920 100644 --- a/src/jinjaturtle/cli.py +++ b/src/jinjaturtle/cli.py @@ -19,7 +19,7 @@ def _build_arg_parser() -> argparse.ArgumentParser: ) ap.add_argument( "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( "-r", @@ -71,14 +71,11 @@ def _main(argv: list[str] | None = None) -> int: print("# config.j2") print(template_str, end="") - return 0 + return True def main() -> None: """ Console-script entry point. - - Defined in pyproject.toml as: - jinjaturtle = jinjaturtle.cli:main """ raise SystemExit(_main(sys.argv[1:]))