Use yargs instead of optimist.

[`optimist`](https://github.com/substack/node-optimist) has been deprecated. [`yargs`](https://github.com/chevex/yargs), which started as a fork of `optimist`, is now the official successor.