Skip to content

Commit

Permalink
CB-10443 Pass original options instead of remaining
Browse files Browse the repository at this point in the history
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 apache#248
  • Loading branch information
Dimitar Kerezov authored and Martin Bektchiev committed Feb 10, 2016
1 parent b51e755 commit da5c7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/cordova/build
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da5c7a8

Please sign in to comment.