show the help if there are no input files (#609)

This commit is contained in:
jeffwi 2014-04-10 09:17:35 -07:00
parent b7782fc151
commit abe3fe2429

4
cli.js
View File

@ -229,6 +229,10 @@ cli.main = function(cb) {
.parseFiles()
.processParseResults();
}
else {
console.log('There are no input files to process.\n');
cli.printHelp(cb);
}
env.run.finish = new Date();
cb(0);