replace argf with stdin

No idea why we used this one instead of STDIN.
Opening a PR to see if the other rubies are okay