Added support for reading from stdin by passing "-" as the last arg.