2016-11-20 00:51:48 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"code.ivysaur.me/imagequant"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
ShouldDisplayVersion := flag.Bool("Version", false, "")
|
|
|
|
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
if *ShouldDisplayVersion {
|
2016-11-24 07:11:13 +00:00
|
|
|
fmt.Printf("libimagequant '%s' (%d)\n", imagequant.GetLibraryVersionString(), imagequant.GetLibraryVersion())
|
2016-11-20 00:51:48 +00:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|