From 7669378c6eca5ed4eef9e339caacc3c7efdcc43f Mon Sep 17 00:00:00 2001 From: Dimitar Kerezov Date: Thu, 28 Jan 2016 09:51:50 +0200 Subject: [PATCH] CB-10443 Pass original options instead of remaining Nopt parses all options regardless of what is passed as "knownOpts". This leaves the remain property an emtpy array. This ultimately leads to a bug in the parseOpts function where the options undergo a second parsing from nopt. The end result is - this options are not respected at all.. This closes #248 --- bin/templates/cordova/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/templates/cordova/build b/bin/templates/cordova/build index da44783f..de86a36a 100755 --- a/bin/templates/cordova/build +++ b/bin/templates/cordova/build @@ -39,7 +39,7 @@ var buildOpts = nopt({ }, { 'd' : '--verbose' }); // Make buildOptions compatible with PlatformApi build method spec -buildOpts.argv = buildOpts.argv.remain; +buildOpts.argv = buildOpts.argv.original; new Api().build(buildOpts) .catch(function(err) {