diff --git a/README.md b/README.md index 25a888eae..856779f75 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ const { hideBin } = require('yargs/helpers') yargs(hideBin(process.argv)) .command('serve [port]', 'start the server', (yargs) => { - yargs + return yargs .positional('port', { describe: 'port to bind on', default: 5000