From 14c4a5a804a8e1a95e4fff1965998f94b0934c2c Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 30 Apr 2023 18:10:52 +1200 Subject: [PATCH] docs: missing return in usage builder function --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 4943a33a3..2762bb04d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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 ', 'start the application server', (yargs) => { - yargs.positional('port', { + return yargs.positional('port', { describe: 'the port that your application should bind to', type: 'number' })