set isDev as default if there is no blockchain file

This commit is contained in:
Jonathan Rainville 2018-07-09 15:20:47 -04:00 committed by Pascal Precht
parent 26b58cc91f
commit da6956695d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 0 deletions

View File

@ -313,6 +313,10 @@ class Cmd {
.description(__('generates documentation based on the smart contracts configured'))
.action(function(env, options) {
i18n.setOrDetectLocale(options.locale);
embark.initConfig(env || 'development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.graph({
env: env || 'development',
logFile: options.logfile,