Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12518

CLI: Passing single hyphen in 'Titanium clean -project-dir' throw error

    Details

      Description

      CLI: Passing single hyphen in 'Titanium clean -project-dir' throws an error

      This is regression as it doesn't happen in 3.0.0.GA
      Actual :

      /home/deepti/Desktop #titanium clean -project-dir
      Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.0.2.v20130129171611
      Copyright (c) 2012, Appcelerator, Inc. All Rights Reserved.

      Please report bugs to http://jira.appcelerator.org/

      [ERROR] TypeError: Object true has no method 'toLowerCase'
      [ERROR] at Object.exports.scrubPlatforms [as scrubPlatforms] (/home/deepti/.titanium/mobilesdk/linux/3.0.2.v20130129171611/node_modules/titanium-sdk/lib/titanium.js:431:12)
      [ERROR] at Object.exports.validate [as validate] (/home/deepti/.titanium/mobilesdk/linux/3.0.2.v20130129171611/cli/commands/clean.js:45:18)
      [ERROR] at cli.validate (/usr/lib/node_modules/titanium/lib/cli.js:495:29)
      [ERROR] at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:190:13)
      [ERROR] at async.forEachSeries.iterate (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25)
      [ERROR] at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:187:17)
      [ERROR] at async.series.results (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:491:34)
      [ERROR] at cli.validate.async.series.async.series.cli.run (/usr/lib/node_modules/titanium/lib/cli.js:476:6)
      [ERROR] at async.series.results (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:486:21)
      [ERROR] at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)

      Usage: titanium clean [--platforms <value>] [--project-dir <value>] [--sdk <value>] [--log-level <level>]

      Removes previous build directories.

      Clean Options:
      --log-level <level> minimum logging level [trace, debug, info, warn, error]
      -p, --platforms <value> one or more platforms to clean [android, mobileweb]
      -d, --project-dir <value> the directory containing the project, otherwise the current working directory
      -s, --sdk <value> Titanium SDK version to use to bootstrap SDK-level commands and parse the tiapp.xml; actual Titanium SDK used determined by <sdk-version> in the tiapp.xml

      Global Flags:
      --banner, --no-banner displays Titanium version banner [default: true]
      --colors, --no-colors use colors in the terminal [default: true]
      -h, --help displays help
      --prompt, --no-prompt prompt for missing options [default: true]
      -q, --quiet suppress all output [default: false]
      -v, --version displays the current version

      expected:
      Argument list is displayed with no error.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              pmishra Paras Mishra
              Reviewer:
              Bryan Hughes
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15500
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration