Parses STDIN and argv