We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6df80a5 commit a383371Copy full SHA for a383371
1 file changed
openapi_generator_cli/__init__.py
@@ -58,7 +58,10 @@ 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
- args = argv[1:] if argv is not None and len(argv) > 1 else []
+ argv = argv or sys.argv
62
+ args = []
63
+ if len(argv) > 1:
64
+ args = argv[1:]
65
sys.exit(run(args).returncode)
66
67
0 commit comments