don't use ARGV in generator
Merge pull request #3377 from timoschilling/no_argv_in_generator

don't use ARGV in generator