Move command line parsing into cli class.
Require cli.