sets defaults value to options for Type error in CLI
This commit is contained in:
Drew
2016-02-25 17:15:39 -08:00

View File

@@ -34,7 +34,7 @@ program.on('--help', function(){
program.parse(process.argv, process.env);
let options;
let options = {};
if (program.args.length > 0 ) {
let jsonPath = program.args[0];
jsonPath = path.resolve(jsonPath);