var argv = require('yargs').argv; argv._ // [ ... ] argv.$0 // "node bin/mybin" argv.verbose // --verbose