sindresorhus/bin-version
The issue has been solved
Also try the `version` sub-command #12
sindresorhus posted onGitHub
Some binaries, like $ openssl
, show the version using a sub-command $ openssl version
instead of a flag like $ curl --version
. If no arguments are given, it would be useful to first try foo --version
and then foo version
.
We should also hard-code a list of common binaries that use the version
sub-command, so we try that first for those. For improved performance. Binaries like, openssl
, swiftlint
, etc.