cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject android commit: CB-10421 Fixes exception when calling run script with --help option
Date Tue, 26 Jan 2016 14:14:37 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master 9c4f09a50 -> 233c2bd88


CB-10421 Fixes exception when calling run script with --help option


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

Branch: refs/heads/master
Commit: 233c2bd8825b6f59e11f2c51fa8b2e9d5049c9a9
Parents: 9c4f09a
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Tue Jan 26 14:56:29 2016 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Tue Jan 26 14:56:29 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/233c2bd8/bin/templates/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js
index b001f47..48236dd 100644
--- a/bin/templates/cordova/lib/run.js
+++ b/bin/templates/cordova/lib/run.js
@@ -116,8 +116,8 @@ var path  = require('path'),
     });
 };
 
-module.exports.help = function(args) {
-    console.log('Usage: ' + path.relative(process.cwd(), args[1]) + ' [options]');
+module.exports.help = function() {
+    console.log('Usage: ' + path.relative(process.cwd(), process.argv[1]) + ' [options]');
     console.log('Build options :');
     console.log('    --debug : Builds project in debug mode');
     console.log('    --release : Builds project in release mode');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message