Skip to content

Commit

Permalink
docs: missing return in usage builder function (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored May 1, 2023
1 parent e326cde commit e517318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ to provide configuration for the positional arguments accepted by your program:
```js
const argv = require('yargs/yargs')(process.argv.slice(2))
.usage('$0 <port>', 'start the application server', (yargs) => {
yargs.positional('port', {
return yargs.positional('port', {
describe: 'the port that your application should bind to',
type: 'number'
})
Expand Down

0 comments on commit e517318

Please sign in to comment.