chore(build): add argv.mode with closure option