예제 #1
0
파일: Command.php 프로젝트: Maxlander/shixi
 /**
  * Get help for command.
  *
  * @param string $command Name of the command to return help for
  *
  * @access public
  * @static
  */
 function getHelp($command)
 {
     $cmds = PEAR_Command::getCommands();
     if (isset($GLOBALS['_PEAR_Command_shortcuts'][$command])) {
         $command = $GLOBALS['_PEAR_Command_shortcuts'][$command];
     }
     if (isset($cmds[$command])) {
         $obj =& PEAR_Command::getObject($command);
         return $obj->getHelp($command);
     }
     return false;
 }