[CB-4532] Changes the CLI to only use optimist for verbose and version

- Also adds limited unit tests for the CLI module

cc @filmaj @bryanhiggins