From d427c52aacb974142e10677db1a43a184cfab80b Mon Sep 17 00:00:00 2001 From: Marcel Kinard Date: Wed, 4 Jun 2014 19:12:55 -0400 Subject: [PATCH] CB-6876 Fix the "print usage" --- bin/templates/cordova/lib/run.js | 2 +- bin/templates/cordova/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index dd679016..be7f5a29 100644 --- a/bin/templates/cordova/lib/run.js +++ b/bin/templates/cordova/lib/run.js @@ -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'); diff --git a/bin/templates/cordova/run b/bin/templates/cordova/run index d4e2c6cb..8c6fe38c 100755 --- a/bin/templates/cordova/run +++ b/bin/templates/cordova/run @@ -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);