Send debug output to stderr
Support reading a file from stdin
Read stdin by default