Show alpm version with -V

This commit is contained in:
morganamilo 2018-07-28 03:45:04 +01:00
parent ccbb5e5923
commit a54b949670
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

4
cmd.go
View file

@ -5,6 +5,8 @@ import (
"fmt"
"os"
"strconv"
alpm "github.com/jguer/go-alpm"
)
var cmdArgs = makeArguments()
@ -349,7 +351,7 @@ func handleConfig(option, value string) bool {
}
func handleVersion() {
fmt.Printf("yay v%s\n", version)
fmt.Printf("yay v%s - libalpm v%s\n", version, alpm.Version())
}
func handlePrint() (err error) {