From 668a25221f8bef75de9b60867aac6f84bd253bbd Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 11 May 2018 16:07:28 -0400 Subject: [PATCH] Fixing framework loading --- cmd/cmd.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/cmd.js b/cmd/cmd.js index be1d095a..9a3ef189 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -327,8 +327,9 @@ class Cmd { scaffold() { program .command('scaffold [contract] [environment]') - .option('--framework', 'UI framework to use. (default: react)') + .option('--framework ', 'UI framework to use. (default: react)') .action(function(contract, env, options){ + let environment = env || 'development'; if(contract === undefined){ @@ -341,7 +342,7 @@ class Cmd { }); options.contract = contract; - options.framework = options.framework || 'react'; + options.framework = options.framework || 'react'; options.env = environment; embark.scaffold(options); });