When in text output mode, print an error on an invalid command...

* ... in JSON output mode, no response for invalid commands.