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) } }