mnahkies / openapi-code-generator

A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
https://openapi-code-generator.nahkies.co.nz/
MIT License
16 stars 2 forks source link

fix: improve handling of cli boolean params #205

Closed mnahkies closed 2 months ago

mnahkies commented 2 months ago

previously setting the environment variable for a boolean option to anything would enable the flag, and it wasn't possible to pass --enable-some-flag false

now you can pass: true, 1 or on to enable a flag, or false, 0 or off to disable a flag (case-insensitive) which should be more intuitive and convenient