replace nopt with yargs

#262916