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); });