mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-11-08 16:51:34 +00:00
Tweak error handling for cmd params.
This commit is contained in:
@@ -35,8 +35,8 @@ catch( ex ) {
|
||||
function main() {
|
||||
|
||||
// Setup
|
||||
if( process.argv.length <= 2 ) { throw { fluenterror: 4 }; }
|
||||
var a = ARGS( process.argv.slice(2) );
|
||||
if( a._.length === 0 ) { throw { fluenterror: 4 }; }
|
||||
opts = getOpts( a );
|
||||
logMsg( title );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user