added a guard to dont use schema with --all

This commit is contained in:
2026-08-15 15:04:06 +03:30
parent eaf6f588b9
commit 313d1d4a99
+3
View File
@@ -21,6 +21,9 @@ def generate(schema, schema_dir, all, output_dir, language: Optional[str] = None
if schema is None and not all: if schema is None and not all:
error("Please pass option --all or argument schema") error("Please pass option --all or argument schema")
return return
if schema is not None and all:
error("Dont use schema with --all. use one of them.")
return
if language: if language:
generator_cls = language_registry.get(language) generator_cls = language_registry.get(language)
if generator_cls is None: if generator_cls is None: