[TIMOB-17581] CLI: Running "ti create --platforms" does not prompt for the target platform to be used and creates the project successfully.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-02-06T21:14:17.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 4.0.0 |
Components | CLI |
Labels | qe-3.4.0 |
Reporter | Khushbu Agrawal |
Assignee | Feon Sua Xin Miao |
Created | 2014-09-01T11:13:39.000+0000 |
Updated | 2015-03-12T18:56:45.000+0000 |
Description
Description:
Running "ti create" prompts the user to pick a platform for the project.
Running "ti create --platforms" skips that step and prompts for the Project name.
The issue is reproducible with CLI 3.3.0.
STEPS TO REPRODUCE
1. Open a terminal window
2. Run 'ti create --platforms'
3. Type in a valid Project name and all prompted values
EXPECTED RESULT
The CLI should notice the missing parameters for the platform and ask for a valid input.
ACTUAL RESULT
CLI creates the project successfully for non of the platforms.
http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Command-Line_Interface_Reference "--platforms" is not a valid option. It is "--platform." Is the bug that it should error out using an invalid option? Or that it should just ignore that invalid option and instead prompt your for the platforms?
With CLI, "ti create -h" command is showing '--platforms' as a valid option. I discussed with [~fmiao] and came to know that documentation needs to be corrected. So "ti create --platforms" is a valid command. It should prompt the user for the platforms.
CR & FR passed, merged
Verified fixed using: Titanium SDK 4.0.0.v20150312092612 Studio 4.0.0.201503062102 CLI 3.4.2 Node 0.12 ti create --platforms correctly shows error message and prompts for platforms.