cmd/gopngquant: expand version display to include both string and int versions

This commit is contained in:
mappu 2016-11-24 20:11:13 +13:00
parent ea2ed0e25b
commit 55baa64e00

View File

@ -14,7 +14,7 @@ func main() {
flag.Parse() flag.Parse()
if *ShouldDisplayVersion { if *ShouldDisplayVersion {
fmt.Printf("libimagequant %d\n", imagequant.GetLibraryVersion()) fmt.Printf("libimagequant '%s' (%d)\n", imagequant.GetLibraryVersionString(), imagequant.GetLibraryVersion())
os.Exit(1) os.Exit(1)
} }
} }