Fixing framework loading

This commit is contained in:
Richard Ramos 2018-05-11 16:07:28 -04:00 committed by Pascal Precht
parent 6f249df4bf
commit 668a25221f
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 2 deletions

View File

@ -327,8 +327,9 @@ class Cmd {
scaffold() {
program
.command('scaffold [contract] [environment]')
.option('--framework', 'UI framework to use. (default: react)')
.option('--framework <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);
});