Input file argument made optional, using standard input by default

Hi, I like your script and found it quite handy.  I needed it to read from stdin and I thought I would offer the change to you as a pull request.  All the best to you.