-
Notifications
You must be signed in to change notification settings - Fork 6k
Add way to retrieve the swagger-codegen version #4548
Description
Description
It is difficult to determine our swagger-codegen version. Consider reporting the version number somehow, perhaps within the help output and/or by adding a version command.
Swagger-codegen version
2.2.1
Steps to reproduce
When reporting swagger-codegen bugs, I remember trying both "swagger-codegen help" and "swagger-codegen version" to determine the version number, and neither report it.
Instead, to figure it out, I ended up doing the following:
$ which swagger-codegen
$ less /usr/local/bin/swagger-codegen
For example, today on my macOS system it shows exec java -jar /usr/local/Cellar/swagger-codegen/2.2.1/libexec/swagger-codegen-cli.jar "$@" so I assume 2.2.1 is the version there.
Suggest a Fix
Consider adding a version command so swagger-codegen version outputs the version number. Additionally, consider adding the version number to the swagger-codegen help output.
That said, this is a low priority feature request.