Replace optimist with yargs

`optimist` has since been deprecated. `yargs` is its replacement. Fixes #73.