From 03777067cd2b38fe9b2b2b4c6e1e7f119dc991c5 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Wed, 2 Dec 2015 17:46:44 +0300 Subject: [PATCH] CB-10112 Parse additional CLI arguments properly. This closes #241 --- bin/templates/cordova/lib/build.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 9e57cb87..bbf4bd96 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -61,13 +61,13 @@ function parseOpts(options, resolvedTarget) { if (options.nobuild) ret.buildMethod = 'none'; if (options.argv.versionCode) - ret.extraArgs.push('-PcdvVersionCode=' + options.versionCode); + ret.extraArgs.push('-PcdvVersionCode=' + options.argv.versionCode); if (options.argv.minSdkVersion) - ret.extraArgs.push('-PcdvMinSdkVersion=' + options.minSdkVersion); + ret.extraArgs.push('-PcdvMinSdkVersion=' + options.argv.minSdkVersion); if (options.argv.gradleArg) - ret.extraArgs.push(options.gradleArg); + ret.extraArgs.push(options.argv.gradleArg); var packageArgs = {};