sindresorhus/bin-version

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.


Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

stroncium was rewarded by sindresorhus for sindresorhus/bin-version# 12
almost 6 years ago
stroncium submitted an output to  sindresorhus/ bin-version# 12
almost 6 years ago