lib/commands/release.js
function() {
    if (this._baseOptions) {
      return this._baseOptions;
    }

    var strategies = this.strategies();
    var strategyOptions = Object.keys(strategies).reduce(function(result, strategyName) {
      var options = strategies[strategyName].availableOptions;

      if (Array.isArray(options)) {
        // Add strategy qualifier to option descriptions
        options.forEach(function(option) {
          option.description = "when strategy is '" + strategyName + "', " + option.description;
        });

        result = result.concat(options);
      }

      return result;
    }, []);

    return this._baseOptions = availableOptions.concat(strategyOptions);
  }
function() {
    if (this._baseOptions) {
      return this._baseOptions;
    }

    var strategies = this.strategies();
    var strategyOptions = Object.keys(strategies).reduce(function(result, strategyName) {
      var options = strategies[strategyName].availableOptions;

      if (Array.isArray(options)) {
        // Add strategy qualifier to option descriptions
        options.forEach(function(option) {
          option.description = "when strategy is '" + strategyName + "', " + option.description;
        });

        result = result.concat(options);
      }

      return result;
    }, []);

    return this._baseOptions = availableOptions.concat(strategyOptions);
  }
function ( ) { if ( this . _baseOptions ) { return this . _baseOptions ; } var strategies = this . strategies ( ) ; var strategyOptions = Object . keys ( strategies ) . reduce ( function ( result , strategyName ) { var options = strategies [ strategyName ] . availableOptions ; if ( Array . isArray ( options ) ) { // Add strategy qualifier to option descriptions options . forEach ( function ( option ) { option . description = "when strategy is '" + strategyName + "', " + option . description ; } ) ; result = result . concat ( options ) ; } return result ; } , [ ] ) ; return this . _baseOptions = availableOptions . concat ( strategyOptions ) ; }
Combine base options with strategy specific options
Combine base options with strategy specific options