Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19281] CLI: Values passed in on project creation using shorthand options seem to be ignored

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-08-04T19:52:54.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsCLI
Labelsqe-5.0.0, regression
ReporterEwan Harris
AssigneeChris Barber
Created2015-07-29T18:00:22.000+0000
Updated2015-08-06T22:00:17.000+0000

Description

Description

When passing values using the shorthand flags such as ti create -t app -n eric -p all -d C:\Users\Windo_000\Documents\Appcelerator_Studio_Workspace\testing --id com.appc you will still be prompted for the values, whereas when passing in ti create --type app --name ewan --platforms all --workspace-dir C:\Users\Windo_000\Documents\Appcelerator_Studio_Workspace\testing --id com.appc -u www.blah.com. This only appears to be happening when using the Titanium CLI, when using the Appc CLI there is no prompting if these values are passed in. *This is a regression*

Steps to reproduce

1. Run the following command {ti create -t app -n eric -p all -d C:\Users\Windo_000\Documents\Appcelerator_Studio_Workspace\testing --id com.appc -u www.blah.com

Actual result

You will be prompted for the values

Expected result

You should not be prompted for the values

Comments

  1. Chris Barber 2015-08-04

    PR: https://github.com/appcelerator/titanium/pull/230
  2. Wilson Luu 2015-08-06

    Closing ticket as fixed. Verified that if you pass in all the required shorthand (and long form) flags to Titanium CLI, you will not be prompted for the values. Tested on: Ti CLI: 4.1.4 SDK: 4.2.0.v20150805163626 Node: v0.10.38 OS: Yosemite (10.10.4)

JSON Source