CB-8147 Have corodva/build warn about unrecognized flags rather than fail

Close #127
This commit is contained in:
Andrew Grieve 2014-12-10 20:30:59 -05:00
parent aa2d3962bf
commit 3aca14d530

View File

@ -339,14 +339,19 @@ function parseOpts(options, resolvedTarget) {
case 'gradle':
ret.buildMethod = option;
break;
case 'device':
case 'emulator':
// Don't need to do anything special to when building for device vs emulator.
// iOS uses this flag to switch on architecture.
break;
case 'nobuild' :
ret.buildMethod = 'none';
break;
default :
return Q.reject('Build option \'' + options[i] + '\' not recognized.');
console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
}
} else {
return Q.reject('Build option \'' + options[i] + '\' not recognized.');
console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
}
}