updated to be slightly less verbose, and to allow for posting directly from the CLI without readline