fix gantt chart cli configuration parsing including functions

This commit is contained in:
whyzdev 2016-12-10 16:21:21 -05:00
parent 3c03c84782
commit 95a0cb53d3
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ var options = {
, svg: system.args[3] === 'true' ? true : false
, css: fs.read(system.args[4])
, sequenceConfig: system.args[5] !== 'null' ? JSON.parse(fs.read(system.args[5])) : '{}'
, ganttConfig: system.args[6] !== 'null' ? fs.read(system.args[6]) : '{}'
, ganttConfig: system.args[6] !== 'null' ? JSON.parse(fs.read(system.args[6])) : '{}'
, verbose: system.args[7] === 'true' ? true : false
, width: width
}