Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-19340] Cannot create projects; invalid --platforms value #231

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ CLI.prototype.validate = function validate(next) {
missing[name] = obj;
missingCount++;
}
} else if (Array.isArray(opt.values) && !opt.skipValueCheck && opt.values.indexOf(argv[name]) == -1) {
} else if (Array.isArray(opt.values) && !opt.skipValueCheck &&
argv[name].split(',').every(function (elem) {
return opt.values.indexOf(elem.toLowerCase().trim()) === -1; })) {
invalid[name] = obj;
invalidCount++;
} else if (!opt.validated && typeof opt.validate == 'function') {
Expand Down Expand Up @@ -981,4 +983,4 @@ CLI.prototype.prompt = function prompt(items, done) {
* @property {Object} cli - The CLI instance.
* @property {Object} command - The command descriptor.
* @property {*} result - The result of the run command, if any.
*/
*/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"mobile web",
"appc-client"
],
"version": "4.1.4",
"version": "4.1.5",
"author": {
"name": "Appcelerator, Inc.",
"email": "npmjs@appcelerator.com"
Expand Down