imagequant/cmd/gopngquant/main.go

21 lines
323 B
Go

package main
import (
"flag"
"fmt"
"os"
"code.ivysaur.me/imagequant"
)
func main() {
ShouldDisplayVersion := flag.Bool("Version", false, "")
flag.Parse()
if *ShouldDisplayVersion {
fmt.Printf("libimagequant '%s' (%d)\n", imagequant.GetLibraryVersionString(), imagequant.GetLibraryVersion())
os.Exit(1)
}
}