replace deprecated optimist with yargs