Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-11585

CLI: Error messaging is showing *undefined*

    Details

      Description

      Hello,

      I was trying to create a new project by using Titanium CLI, and I forgot to set the --id parameter. Here is the following error:

      $ titanium create --platforms ios, android --name Fuu-CLI --workspace-dir ~/Projects/ --id com.rafaelks.fuu
      Titanium Command-Line Interface, version 3.0.9
      Copyright (c) 2012, Appcelerator, Inc.  All Rights Reserved.
      
      Please report bugs to http://jira.appcelerator.org/
      
      [ERROR] Invalid platform: 
      
      Available platforms for SDK version undefined:
      
          android
          iphone
          mobileweb
      

      It happens because I used a blank space after comma in --platforms parameter. But if you look at the message error, the SDK verison is undefined.

        Activity

        Show
        Chris Barber added a comment - Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3389 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3390
        Hide
        Natalie Huynh added a comment -

        Tested with CLI 3.0.19

        Show
        Natalie Huynh added a comment - Tested with CLI 3.0.19

          People

          • Assignee:
            Chris Barber
            Reporter:
            Rafael Kellermann Streit
          • Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development