We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a383371 commit ff5f1d1Copy full SHA for ff5f1d1
1 file changed
openapi_generator_cli/__init__.py
@@ -58,12 +58,9 @@ def run(args: list[str] | None = None) -> subprocess.CompletedProcess[bytes]:
58
59
def cli(argv: list[str] | None = None) -> None:
60
"""Run the OpenAPI Generator CLI with the arguments provided on the command line."""
61
- argv = argv or sys.argv
62
- args = []
63
- if len(argv) > 1:
64
- args = argv[1:]
+ args = (argv or sys.argv)[1:]
65
sys.exit(run(args).returncode)
66
67
68
if __name__ == "__main__":
69
- cli(sys.argv)
+ cli()
0 commit comments