Show commit in --version and ledger-tool's log (#12636)

* Show commit in `--version` and ledger-tool's log

* Another handy hidden env var

* Fix test

* Rename to semver!

* Fix syntax error...
This commit is contained in:
Ryo Onodera
2020-10-04 00:30:26 +09:00
committed by GitHub
parent 337da184f3
commit 026e7de819
4 changed files with 14 additions and 3 deletions

View File

@ -1246,6 +1246,8 @@ fn main() {
)
.get_matches();
info!("{} {}", crate_name!(), solana_version::version!());
let ledger_path = PathBuf::from(value_t!(matches, "ledger_path", String).unwrap_or_else(
|_err| {
eprintln!(