You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/06/05 01:15:16 UTC

android commit: CB-6876 Fix the "print usage"

Repository: cordova-android
Updated Branches:
  refs/heads/master eb623a84d -> d427c52aa


CB-6876 Fix the "print usage"


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/d427c52a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/d427c52a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/d427c52a

Branch: refs/heads/master
Commit: d427c52aacb974142e10677db1a43a184cfab80b
Parents: eb623a8
Author: Marcel Kinard <cm...@gmail.com>
Authored: Wed Jun 4 19:12:55 2014 -0400
Committer: Marcel Kinard <cm...@gmail.com>
Committed: Wed Jun 4 19:12:55 2014 -0400

----------------------------------------------------------------------
 bin/templates/cordova/lib/run.js | 2 +-
 bin/templates/cordova/run        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d427c52a/bin/templates/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js
index dd67901..be7f5a2 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');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d427c52a/bin/templates/cordova/run
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/run b/bin/templates/cordova/run
index d4e2c6c..8c6fe38 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);