a wrapper for CLI pretty printing