ImgOpt is a command-line script that uses FLIF to optimize PNG files.
It expects 1 argument, that being the desired file to optimize.
FLIF