From 4236f561478572e493fb2ca6e50fa8a8b1c841c4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 10 May 2018 15:36:24 -0400 Subject: [PATCH] add missing option --- lib/cmd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cmd.js b/lib/cmd.js index 79035f68..d59c3f1e 100644 --- a/lib/cmd.js +++ b/lib/cmd.js @@ -83,7 +83,7 @@ class Cmd { .command('demo') .option('--locale [locale]', __('language to use (default: en)')) .description(__('create a working dapp with a SimpleStorage contract')) - .action(function () { + .action(function (options) { i18n.setOrDetectLocale(options.locale); embark.generateTemplate('demo', './', 'embark_demo'); }); @@ -97,7 +97,7 @@ class Cmd { .option('--locale [locale]', __('language to use (default: en)')) .description(__('deploy and build dapp at ') + 'dist/ (default: development)') .action(function (env, _options) { - i18n.setOrDetectLocale(options.locale); + i18n.setOrDetectLocale(_options.locale); _options.env = env || 'development'; _options.logFile = _options.logfile; // fix casing _options.logLevel = _options.loglevel; // fix casing @@ -197,7 +197,7 @@ class Cmd { .option('--locale [locale]', __('language to use (default: en)')) .description(__('Upload your dapp to a decentralized storage') + ' (e.g embark upload ipfs).') .action(function (platform, env, _options) { - i18n.setOrDetectLocale(options.locale); + i18n.setOrDetectLocale(_options.locale); _options.env = env || 'development'; _options.logFile = _options.logfile; // fix casing _options.logLevel = _options.loglevel; // fix casing @@ -230,7 +230,7 @@ class Cmd { .command('reset') .option('--locale [locale]', __('language to use (default: en)')) .description(__('resets embarks state on this dapp including clearing cache')) - .action(function () { + .action(function (options) { i18n.setOrDetectLocale(options.locale); embark.initConfig('development', { embarkConfig: 'embark.json', interceptLogs: false