cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [14/18] android commit: CB-6876 Fix the "print usage"
Date Mon, 09 Jun 2014 02:55:13 GMT
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/4.0.x
Commit: d427c52aacb974142e10677db1a43a184cfab80b
Parents: eb623a8
Author: Marcel Kinard <cmarcelk@gmail.com>
Authored: Wed Jun 4 19:12:55 2014 -0400
Committer: Marcel Kinard <cmarcelk@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);


Mime
View raw message