Start using OptParser and solve issue with testing cli output