From b9d6ba32bcce90a24aae38e2cce0e6dc73f44e1b Mon Sep 17 00:00:00 2001 From: hannes Date: Tue, 16 Mar 2021 02:35:28 +0800 Subject: [PATCH] docs(usage): add return to fix TS inheritance (#1889) Should reflect solution of this issue: https://github.com/yargs/yargs/issues/1450 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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