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;
  }