compresslog: migrate to optparse to cleanup opt handling