lib/commands/release.js
function() {
    this._super.init && this._super.init.apply(this, arguments);
    var baseOptions = this.baseOptions();
    var optionsFromConfig = this.config().options;
    var mergedOptions = baseOptions.map(function(availableOption) {
      var option = merge(true, availableOption);

      if ((optionsFromConfig[option.name] !== undefined) && (option.default !== undefined)) {
        option.default = optionsFromConfig[option.name];
        option.description = option.description + ' (configured in ' + configPath + ')';
      }

      return option;
    });

    // Merge custom strategy options if specified
    var strategy = optionsFromConfig.strategy;
    if (typeof strategy === 'object' && Array.isArray(strategy.availableOptions)) {
      mergedOptions = mergedOptions.concat(strategy.availableOptions);
    }

    this.registerOptions({
      availableOptions: mergedOptions
    });
  }
function() {
    this._super.init && this._super.init.apply(this, arguments);
    var baseOptions = this.baseOptions();
    var optionsFromConfig = this.config().options;
    var mergedOptions = baseOptions.map(function(availableOption) {
      var option = merge(true, availableOption);

      if ((optionsFromConfig[option.name] !== undefined) && (option.default !== undefined)) {
        option.default = optionsFromConfig[option.name];
        option.description = option.description + ' (configured in ' + configPath + ')';
      }

      return option;
    });

    // Merge custom strategy options if specified
    var strategy = optionsFromConfig.strategy;
    if (typeof strategy === 'object' && Array.isArray(strategy.availableOptions)) {
      mergedOptions = mergedOptions.concat(strategy.availableOptions);
    }

    this.registerOptions({
      availableOptions: mergedOptions
    });
  }
function ( ) { this . _super . init && this . _super . init . apply ( this , arguments ) ; var baseOptions = this . baseOptions ( ) ; var optionsFromConfig = this . config ( ) . options ; var mergedOptions = baseOptions . map ( function ( availableOption ) { var option = merge ( true , availableOption ) ; if ( ( optionsFromConfig [ option . name ] !== undefined ) && ( option . default !== undefined ) ) { option . default = optionsFromConfig [ option . name ] ; option . description = option . description + ' (configured in ' + configPath + ')' ; } return option ; } ) ; // Merge custom strategy options if specified var strategy = optionsFromConfig . strategy ; if ( typeof strategy === 'object' && Array . isArray ( strategy . availableOptions ) ) { mergedOptions = mergedOptions . concat ( strategy . availableOptions ) ; } this . registerOptions ( { availableOptions : mergedOptions } ) ; }
Merge options specified on the command line with those defined in the config
Merge options specified on the command line with those defined in the config