CLI: Only read stdin if there were no files supplied and not in tty mode.

Fixes #563
I don't follow. What would the stub look like?