Details

      Description

      --no-prompt does not work anymore in the Titanium CLI.

      chris@yojimbo:~/appc/workspace/testapp2$ ti build -p ios --device-family asdflsadkfsal --no-prompt
      Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      [ERROR] Invalid "--device-family" value "asdflsadkfsal"
       
      Please select a valid device-family value:
       1)  iphone
       2)  ipad
       3)  universal
      Select a value by number or name:  
      

      This is a regression that was introduced by https://github.com/appcelerator/titanium/commit/4fd10d1b37ef19c32eee2b8c19ce45c3ecbb6668, which was fixing another bug where passing in --quiet, --no-prompt, or --no-progress-bars to a 'ti config <key> <value>' or 'ti setup' command would persist those flags in the config.

      Expected results:
      Command should display the error and then exit.

      Actual results:
      Command displays the error, but then continues to prompt.

      Fix:
      The fix is relatively simple: replace all references to this.config.cli.prompt with this.argv.prompt in cli.js.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              cbarber Chris Barber
              Reviewer:
              Allen Yeung
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code