Default to pretty-printing output, but add optional --compact flag.