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.
Hmmm. Seems like that would require logic like "if (quiet and output) .. else if (quiet) ... else if (output) ... else ...". Yuck.