From 233c2bd8825b6f59e11f2c51fa8b2e9d5049c9a9 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Tue, 26 Jan 2016 14:56:29 +0300 Subject: [PATCH] CB-10421 Fixes exception when calling run script with --help option --- bin/templates/cordova/lib/run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index b001f474..48236dd7 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');