1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00

Update --options file loading.

This commit is contained in:
hacksalot 2016-01-15 13:36:20 -05:00
parent defe9b6e95
commit 934d8a6123

View File

@ -98,7 +98,8 @@ Definition of the `main` function.
.arguments('<sources...>')
.description('Peek at a resume field or section')
.action(function( sources, sectionOrField ) {
execute.call( this, sources, [ sources.pop() ], this.opts(), logMsg);
var dst = (sources && sources.length > 1) ? [sources.pop()] : [];
execute.call( this, sources, dst, this.opts(), logMsg);
});
// Create the BUILD command
@ -197,7 +198,9 @@ Definition of the `main` function.
if( optStr[0] === '{')
oJSON = eval('(' + optStr + ')'); // jshint ignore:line
else {
oJSON = safeLoadJSON( optStr );
var inf = safeLoadJSON( optStr );
if( !inf.ex )
oJSON = inf.json;
// TODO: Error handling
}
}