Separate pretty printing.
Change to io.Reader for generate.

Use flag.Args instead as to not consume options provided.
Use os.Stdin if file isn't specified (unless it's a character device).
Simpily and update README

Show stdin use via curl