Skip to content

Commit

Permalink
docs(usage): add return to fix TS inheritance (#1889)
Browse files Browse the repository at this point in the history
Should reflect solution of this issue: #1450
  • Loading branch information
escapedcat committed Mar 15, 2021
1 parent 1a1e2d5 commit b9d6ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
Expand Down

0 comments on commit b9d6ba3

Please sign in to comment.