You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't ask to support -version (that was just an example on how people try to get the version when they have a Java background). The feature request was to support "-v" as a short version of "--version".
It's very common that one minus with letter is the short form of two minus signs with a descriptive word.
Example is npm. There you can both use npm -v or npm --version
To me this is extremely low priority so feel free to contribute this as a PR. Originally when I wrote the CLI there was some issue with using -v due to some conflict with verbose or something but that was ages ago.
Consider the following:
D:\intellij\workspace>java -version
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Temurin-11.0.18+10 (build 11.0.18+10)
OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)
D:\intellij\workspace>npm -v
9.5.1
D:\intellij\workspace>jhipster --version
8.0.0-beta.1
D:\intellij\workspace>jhipster -v
error: unknown option '-v'
I think that -v as a short form of --version is very common. Maybe support that command line option as well as alternative to the --version.
The text was updated successfully, but these errors were encountered: