added a guard to dont use schema with --all
This commit is contained in:
@@ -21,6 +21,9 @@ def generate(schema, schema_dir, all, output_dir, language: Optional[str] = None
|
||||
if schema is None and not all:
|
||||
error("Please pass option --all or argument schema")
|
||||
return
|
||||
if schema is not None and all:
|
||||
error("Dont use schema with --all. use one of them.")
|
||||
return
|
||||
if language:
|
||||
generator_cls = language_registry.get(language)
|
||||
if generator_cls is None:
|
||||
|
||||
Reference in New Issue
Block a user