From 6e5b76b3a0c2a0abf9e5b1b7273ffd4427352c2d Mon Sep 17 00:00:00 2001 From: AK <52356853+aakti@users.noreply.github.com> Date: Mon, 29 Jul 2019 08:02:13 +0530 Subject: [PATCH] fix(examples): fix usage-options.js to reflect current API (#1375) --- example/usage-options.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/example/usage-options.js b/example/usage-options.js index 65a9c1302..5bf961689 100644 --- a/example/usage-options.js +++ b/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();