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': case 'gradle':
ret.buildMethod = option; ret.buildMethod = option;
break; 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' : case 'nobuild' :
ret.buildMethod = 'none'; ret.buildMethod = 'none';
break; break;
default : default :
return Q.reject('Build option \'' + options[i] + '\' not recognized.'); console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
} }
} else { } else {
return Q.reject('Build option \'' + options[i] + '\' not recognized.'); console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
} }
} }