config+lnd+lncli: add commit back to version string

This commit is contained in:
Oliver Gugger
2020-04-14 11:13:11 +02:00
parent ec5bfd3df7
commit 1e3b0672d7
3 changed files with 6 additions and 4 deletions

View File

@ -478,7 +478,8 @@ func loadConfig() (*config, error) {
appName = strings.TrimSuffix(appName, filepath.Ext(appName))
usageMessage := fmt.Sprintf("Use %s -h to show usage", appName)
if preCfg.ShowVersion {
fmt.Println(appName, "version", build.Version())
fmt.Println(appName, "version", build.Version(),
"commit="+build.Commit)
os.Exit(0)
}