Skip to content

Commit

Permalink
docs: corrected version specifier in help example (#1163)
Browse files Browse the repository at this point in the history
The name of the flag: `version` and the actual version value: `1.0.1` were switched.
  • Loading branch information
kunagpal authored and bcoe committed Jun 24, 2018
1 parent e8cf970 commit 37b07e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/help.js
Expand Up @@ -3,7 +3,7 @@ var yargs = require('../index');
var argv = yargs
.usage('This is my awesome program\n\nUsage: $0 [options]')
.help('help').alias('help', 'h')
.version('1.0.1', 'version').alias('version', 'V')
.version('version', '1.0.1').alias('version', 'V')
.options({
input: {
alias: 'i',
Expand Down

0 comments on commit 37b07e7

Please sign in to comment.