From e517318cea0087b813f5de414b3cdec7b70efe33 Mon Sep 17 00:00:00 2001 From: John Gee Date: Tue, 2 May 2023 03:09:39 +1200 Subject: [PATCH] docs: missing return in usage builder function (#2328) --- 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' })