Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17581] CLI: Running "ti create --platforms" does not prompt for the target platform to be used and creates the project successfully.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-02-06T21:14:17.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 4.0.0
ComponentsCLI
Labelsqe-3.4.0
ReporterKhushbu Agrawal
AssigneeFeon Sua Xin Miao
Created2014-09-01T11:13:39.000+0000
Updated2015-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.

Comments

  1. Ingo Muschenetz 2014-09-01

    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?
  2. Khushbu Agrawal 2014-09-02

    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.
  3. Feon Sua Xin Miao 2014-12-11

  4. Tim Poulsen 2015-02-06

    CR & FR passed, merged
  5. Eric Wieber 2015-03-12

    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.

JSON Source