Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also try the version sub-command #12

Closed
sindresorhus opened this issue Nov 7, 2018 · 6 comments · Fixed by #15
Closed

Also try the version sub-command #12

sindresorhus opened this issue Nov 7, 2018 · 6 comments · Fixed by #15
Labels
enhancement 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Nov 7, 2018

Issuehunt badges

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.


IssueHunt Summary

stroncium stroncium has been rewarded.

Sponsors (Total: $40.00)

Tips

@lbell
Copy link

lbell commented Mar 26, 2019

Possibly related: ffmpeg (and the whole ff- family) uses -version (one dash).

@sindresorhus
Copy link
Owner Author

For anyone that wants to work on this, see the initial attempt and feedback in #13.

@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Jun 12, 2019
@issuehunt-oss
Copy link

issuehunt-oss bot commented Jun 12, 2019

@issuehunt has funded $40.00 to this issue.


@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Jun 15, 2019
@issuehunt-oss
Copy link

issuehunt-oss bot commented Jun 15, 2019

@sindresorhus has rewarded $36.00 to @stroncium. See it on IssueHunt

  • 💰 Total deposit: $40.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $4.00

@stroncium
Copy link
Contributor

stroncium commented Jun 17, 2019

For the record, I did try it on every possible command in my system, and after waiting for an hour and closing hundreds of windows I can say I'm fairly satisfied with result: nearly half of commands did produce a version, and a lot of ones which didn't are gui-only tools which aren't supposed to have one(though I didn't check manually) and some obscure names(so internal utils, I suppose).

NOTE: don't recommend to reproduce it, my system is nearly destroyed atm, and that's just what I see from a glance.

@sindresorhus
Copy link
Owner Author

Thanks doing such thorough testing 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted
Projects
None yet
3 participants