Skip to content

Commit

Permalink
fix(examples): fix usage-options.js to reflect current API (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
aakti authored and bcoe committed Jul 29, 2019
1 parent 3d26d11 commit 6e5b76b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions example/usage-options.js
@@ -1,17 +1,18 @@
var yargs = require('yargs');

var argv = yargs.usage('This is my awesome program', {
'about': {
description: 'Provide some details about the author of this program',
required: true,
alias: 'a',
},
'info': {
description: 'Provide some information about the node.js agains!!!!!!',
boolean: true,
alias: 'i'
}
}).argv;
var argv = yargs.usage('This is my awesome program')
.options({
'about': {
description: 'Provide some details about the author of this program',
required: true,
alias: 'a',
},
'info': {
description: 'Provide some information about the node.js agains!!!!!!',
boolean: true,
alias: 'i'
}
}).argv;

yargs.showHelp();

Expand Down

0 comments on commit 6e5b76b

Please sign in to comment.