Showing task list on error

This commit is contained in:
Trevor Burnham
2011-11-13 15:12:12 -05:00
parent 79945ad473
commit 97dbb7bb49
2 changed files with 4 additions and 0 deletions

View File

@@ -78,11 +78,13 @@
missingOption = function(option) {
console.error("No such option: \"" + option + "\"\n");
printTasks();
return process.exit(1);
};
missingTask = function(task) {
console.error("No such task: \"" + task + "\"\n");
printTasks();
return process.exit(1);
};