Squoosh-with-CLI
Squoosh-with-CLI copied to clipboard
The short option for displaying version is `-V` not `-v`
I have squoosh-cli
version 0.9.1 installed and running under Windows Terminal 1.20.11781.0.
The help command lists various options ending with the following:
-V, --version output the version number
-h, --help display help for command
This may be by design and not a bug, however when trying to use -v
to display the version, it returned error: unknown option '-v'
.
I first thought the option wasn't implemented, but then later noticed that the letter is capitalized -V
.
Was this intentional? All other squoosh-cli
options appear to be entirely lowercase and I believe most CLI applications that provide a short alternative to --version
usually go with -v
.
If it's supposed to be -V
instead of -v
, please disregard this report.
Expected behavior
When I saw that there was a short alternative to --version
, I immediately assumed it was -v
like other CLI tools I use, and therefore I expected the -v
to display the version, not the "unknown option" error.
Version:
- OS w/ version: Windows 10 Pro, 22H2, 19045.4651
- Node version: 20.14.0
- npm version: 10.8.2