CB-6876 Fix the "print usage"

This commit is contained in:
Marcel Kinard 2014-06-04 19:12:55 -04:00
parent eb623a84d5
commit d427c52aac
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ var path = require('path'),
});
}
module.exports.help = function() {
module.exports.help = function(args) {
console.log('Usage: ' + path.relative(process.cwd(), args[0]) + ' [options]');
console.log('Build options :');
console.log(' --debug : Builds project in debug mode');

View File

@ -26,7 +26,7 @@ var run = require('./lib/run'),
// Support basic help commands
if (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' ||
args[2] == 'help' || args[2] == '-help' || args[2] == '/help') {
run.help();
run.help(args);
} else {
reqs.run().done(function() {
return run.run(args);