Description
Running "ti create" prompts the user to pick a platform for the project.
Running "ti create -p" skips that step and prompts for the App ID.
No matter what is entered the user will get
[ERROR] TypeError: Object true has no method 'toLowerCase'
at exports.scrubPlatforms (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140122175749/node_modules/titanium-sdk/lib/titanium.js:624:12)
at options.appc.util.mix.id.prompt.validator (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140122175749/cli/commands/create.js:76:26)
at fields.text.validate (/usr/local/lib/node_modules/titanium/lib/cli.js:1018:12)
at Text.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/fields/lib/prompter.js:169:21)
at EventEmitter.emit (events.js:98:17)
at emitKey (/usr/local/lib/node_modules/titanium/node_modules/fields/node_modules/keypress/index.js:344:12)
at onData (/usr/local/lib/node_modules/titanium/node_modules/fields/node_modules/keypress/index.js:39:7)
at EventEmitter.emit (events.js:95:17)
Steps To Reproduce
1. Open a terminal window
2. Run 'ti create -p'
3. Type in a valid App ID
Expected Result
The CLI should notice the missing parameters for the platform and ask for a valid input.
Actual Result
The CLI moves on to the App ID, then fails to create.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5285 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5286