Project: titanium
Issue TIMOB-17587: CLI: Running "ti create --sdk" or "ti create -s" fails the create command instead of prompting for sdk version.
Description: Running "ti create --sdk" or "ti create -s" does not prompts the user to specify the sdk version.It's showing ' Failed to run command "create"' error. The issue is reproducible with CLI 3.3.0. STEPS TO REPRODUCE 1. Open a terminal window 2. Run 'ti create --sdk' or Run 'ti create -s' 3. Type in a valid Project name and all prompted values EXPECTED RESULT The CLI should prompt user for selecting the sdk version with either --sdk or -s options. ACTUAL RESULT Running this fails the "create" command by showing below error with both the options '--sdk' and 's' . {code} KAGRAWAL-MBP:Appcelerator_Studio_Workspace kagrawal$ ti create --sdk Titanium Command-Line Interface, CLI version 3.4.0-dev, Titanium SDK version 3.4.0.v20140829184521 Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved. Please report bugs to http://jira.appcelerator.org/ What type of project would you like to create? 1) app 2) module Select a type by number or name [app]: 1 Target platform (all|iphone|ipad|mobileweb|android|blackberry) [all]: iphone Project name: example12 App ID: a.b Your company/personal URL: Directory to place project [.]: /Users/kagrawal/Documents/Appcelerator_Studio_Workspace [INFO] Creating app project [ERROR] Failed to run command "create" [ERROR] TypeError: Cannot read property 'path' of null at CreateCommand. (/Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/cli/commands/create.js:414:57) at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:610:21 at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:249:17 at iterate (/Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:149:13) at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:160:25 at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:251:21 at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:615:34 at appc.async.series.template (/Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/cli/commands/create.js:408:4) at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:610:21 at /Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:249:17 {code}
Story points: 8