imagequant/cmd/gopngquant/main.go

21 lines
278 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 %d\n", imagequant.GetLibraryVersion())
os.Exit(1)
}
}