From 1946f1364db472f9d87e8a3c8c7b3435225fd869 Mon Sep 17 00:00:00 2001 From: Louis Mandel Date: Mon, 23 Sep 2024 17:07:47 -0400 Subject: [PATCH] Stop the execution after printing the schema if `--schema` is provided --- pdl/pdl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdl/pdl.py b/pdl/pdl.py index a907abc23..c2124944f 100644 --- a/pdl/pdl.py +++ b/pdl/pdl.py @@ -194,6 +194,8 @@ def main(): ) top_level_schema["anyOf"] = list(schema.values()) print(json.dumps(top_level_schema, indent=2)) + return + if args.pdl is None: parser.print_help() return