Skip to content

Commit 45d6269

Browse files
authored
Stop the execution after printing the schema if --schema is provided (#78)
1 parent 2cbac0d commit 45d6269

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pdl/pdl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def main():
194194
)
195195
top_level_schema["anyOf"] = list(schema.values())
196196
print(json.dumps(top_level_schema, indent=2))
197+
return
198+
197199
if args.pdl is None:
198200
parser.print_help()
199201
return

0 commit comments

Comments
 (0)