1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-03 21:07:07 +01:00

Use Commander.js for invocations.

This commit is contained in:
hacksalot
2016-01-03 02:22:26 -05:00
parent a95b52acd0
commit 6b3396e01b
5 changed files with 175 additions and 36 deletions

View File

@ -67,8 +67,7 @@ Error-handling routines for HackMyResume.
break;
case HACKMYSTATUS.invalidCommand:
msg = chalk.yellow('Please ') + chalk.yellow.bold('specify the output resume file') +
chalk.yellow(' that should be created.');
msg = chalk.yellow('Invalid command: "') + chalk.yellow.bold(ex.attempted) + chalk.yellow('"');
break;
case HACKMYSTATUS.resumeNotFoundAlt:
@ -116,7 +115,7 @@ Error-handling routines for HackMyResume.
}
// Let the error code be the process's return code.
if( shouldExit )
if( shouldExit || ex.shouldExit )
process.exit( exitCode );
}