protected function buildOptionLine($option_line_data, $options_data) {
    $padding = $options_data['padding'];

    $required = $option_line_data['spec']['required'];

    $out = str_pad($option_line_data['switch_text'], $padding);
    $out .= (strlen($option_line_data['spec']['help']) ? ' '.$option_line_data['spec']['help'] : '');    
    $out .= ($required ? ' (required)' : '');

    // surround in bold if required
    if ($required) {
      $out = ConsoleFormat::applyformatToText('bold','yellow',$out);
    }

    return '  '.$out;
  }
protected function buildOptionLine($option_line_data, $options_data) {
    $padding = $options_data['padding'];

    $required = $option_line_data['spec']['required'];

    $out = str_pad($option_line_data['switch_text'], $padding);
    $out .= (strlen($option_line_data['spec']['help']) ? ' '.$option_line_data['spec']['help'] : '');    
    $out .= ($required ? ' (required)' : '');

    // surround in bold if required
    if ($required) {
      $out = ConsoleFormat::applyformatToText('bold','yellow',$out);
    }

    return '  '.$out;
  }
protected function buildOptionLine ( $ option_line_data , $ options_data ) { $ padding = $ options_data [ 'padding' ] ; $ required = $ option_line_data [ 'spec' ] [ 'required' ] ; $ out = str_pad ( $ option_line_data [ 'switch_text' ] , $ padding ) ; $ out .= ( strlen ( $ option_line_data [ 'spec' ] [ 'help' ] ) ? ' ' . $ option_line_data [ 'spec' ] [ 'help' ] : '' ) ; $ out .= ( $ required ? ' (required)' : '' ) ; // surround in bold if required if ( $ required ) { $ out = ConsoleFormat :: applyformatToText ( 'bold' , 'yellow' , $ out ) ; } return '  ' . $ out ; }
builds an option line

@param array $option_line_data Option line specification data
@param array $options_data     All options specification data

@return string formatted option line text
builds an option line