cli test

This is ugly, but working. I want to clean it before merging, but I'm not sure how to get rid of the case analysis.
Would the destination for output we want to throw away ever _not_ be `/dev/null`? If yes, we should abstract this.