Пример #1
0
 /**
  * Builds nicely formatted help text based on the arguments spec
  * 
  * @param ArgumentsSpec $arguments_spec The arguments specification
  *
  * @return string formatted help text
  */
 public static function buildHelpText(ArgumentsSpec $arguments_spec)
 {
     $gen = new HelpGenerator($arguments_spec);
     return $gen->build();
 }
Пример #2
0
 /**
  * builds a nicely formatted help text
  *
  * @param mixed $self_name An optional name for self.  Defaults to $_SERVER['argv'][0].
  *
  * @return string The help text
  */
 public function buildHelpText()
 {
     return HelpGenerator::buildHelpText($this->arguments_spec);
 }