protected function buildUsageLine($usage_data, $options_data) {
    if ($usage_data['use_argv_self']) {
      $self_name = $_SERVER['argv'][0];
    } else {
      $self_name = $usage_data['self'];
    }

    $has_options = (count($options_data['lines']) > 0 ? true : false);
    $has_named_args = (count($usage_data['named_args_spec']) > 0 ? true : false);

    $out = 
      ConsoleFormat::applyformatToText('bold','cyan',"Usage:")."\n".
      "  {$self_name}".
      ($has_options ? ' [options]' : '').
      ($has_named_args ? ' '.$this->generateValueNamesHelp($usage_data['named_args_spec']) : '').
      "\n";

    return $out;
  }
protected function buildUsageLine($usage_data, $options_data) {
    if ($usage_data['use_argv_self']) {
      $self_name = $_SERVER['argv'][0];
    } else {
      $self_name = $usage_data['self'];
    }

    $has_options = (count($options_data['lines']) > 0 ? true : false);
    $has_named_args = (count($usage_data['named_args_spec']) > 0 ? true : false);

    $out = 
      ConsoleFormat::applyformatToText('bold','cyan',"Usage:")."\n".
      "  {$self_name}".
      ($has_options ? ' [options]' : '').
      ($has_named_args ? ' '.$this->generateValueNamesHelp($usage_data['named_args_spec']) : '').
      "\n";

    return $out;
  }
protected function buildUsageLine ( $ usage_data , $ options_data ) { if ( $ usage_data [ 'use_argv_self' ] ) { $ self_name = $ _SERVER [ 'argv' ] [ 0 ] ; } else { $ self_name = $ usage_data [ 'self' ] ; } $ has_options = ( count ( $ options_data [ 'lines' ] ) > 0 ? true : false ) ; $ has_named_args = ( count ( $ usage_data [ 'named_args_spec' ] ) > 0 ? true : false ) ; $ out = ConsoleFormat :: applyformatToText ( 'bold' , 'cyan' , "Usage:" ) . "\n" . "  {$self_name}" . ( $ has_options ? ' [options]' : '' ) . ( $ has_named_args ? ' ' . $ this -> generateValueNamesHelp ( $ usage_data [ 'named_args_spec' ] ) : '' ) . "\n" ; return $ out ; }
builds the usage line

@param array $usage_data   Usage line specification data
@param array $options_data Options specification data

@return string formatted usage line text
builds the usage line