fix(gen): fix args and options handling from prev commit.