protected function buildOptionLineData($option_line_spec) {
    $data = array();

    $switch_text = '';
    if (strlen($option_line_spec['short'])) {
      $switch_text .= "-".$option_line_spec['short'];
    }
    if (strlen($option_line_spec['long'])) {
      $switch_text .= ($switch_text ? ", " : "")."--".$option_line_spec['long'];
    }

    $data = array(
      'switch_text' => $switch_text.(strlen($option_line_spec['value_name']) ? ' <'.$option_line_spec['value_name'].'>' : ''),
      'spec'        => $option_line_spec,
    );

    return $data;
  }
protected function buildOptionLineData($option_line_spec) {
    $data = array();

    $switch_text = '';
    if (strlen($option_line_spec['short'])) {
      $switch_text .= "-".$option_line_spec['short'];
    }
    if (strlen($option_line_spec['long'])) {
      $switch_text .= ($switch_text ? ", " : "")."--".$option_line_spec['long'];
    }

    $data = array(
      'switch_text' => $switch_text.(strlen($option_line_spec['value_name']) ? ' <'.$option_line_spec['value_name'].'>' : ''),
      'spec'        => $option_line_spec,
    );

    return $data;
  }
protected function buildOptionLineData ( $ option_line_spec ) { $ data = array ( ) ; $ switch_text = '' ; if ( strlen ( $ option_line_spec [ 'short' ] ) ) { $ switch_text .= "-" . $ option_line_spec [ 'short' ] ; } if ( strlen ( $ option_line_spec [ 'long' ] ) ) { $ switch_text .= ( $ switch_text ? ", " : "" ) . "--" . $ option_line_spec [ 'long' ] ; } $ data = array ( 'switch_text' => $ switch_text . ( strlen ( $ option_line_spec [ 'value_name' ] ) ? ' <' . $ option_line_spec [ 'value_name' ] . '>' : '' ) , 'spec' => $ option_line_spec , ) ; return $ data ; }
builds a line of options data from a line of the argument spec

@param array $option_line_spec Data of argument specification representing an options line

@return mixed Value.
builds a line of options data from a line of the argument spec