Add better --version information
What problem will this solve?
According to the output from --version I'm currently using 5.0.0-dev. But that doesn't tell me exactly which commit my executable was built from. Having at least a timestamp of when the executable was built would enable me to see at a glance whether I might be missing some important fix or feature.
What might be a solution? Including the executable build time (and commit number for development builds) would give a clearer indication of how old (or new) a Premake executable is.
https://github.com/premake/premake-core/pull/2405 did that in first version (prepending short sha1)...
@Jarod42 would it be better to have a separate field in the --version output for SHA1, instead of appending the short SHA1 to the version? Something like:
premake5 (Premake Build Script Generator ) 5.0.0-dev
Commit SHA: xyz.....
It is a possibility. Better is opinion-based though ;-) (I dislike 5.0.0-dev, and prefer 5.0.0-beta5-sha1 and no sha1 for official).