New command line (cli).

Cli using ruby optparser.
Unit tests failing.