diff --git a/README.md b/README.md index e60dfdc88..2ca900056 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ npm i yargs@next ````javascript #!/usr/bin/env node -const argv = require('yargs').argv +const {argv} = require('yargs') if (argv.ships > 3 && argv.distance < 53.5) { console.log('Plunder more riffiwobbles!') @@ -137,4 +137,4 @@ Having problems? want to contribute? join our [community slack](http://devtoolsc [slack-url]: http://devtoolscommunity.herokuapp.com [type-definitions]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs [coverage-image]: https://img.shields.io/nycrc/yargs/yargs -[coverage-url]: https://github.com/yargs/yargs/blob/master/.nycrc \ No newline at end of file +[coverage-url]: https://github.com/yargs/yargs/blob/master/.nycrc