示例#1
0
 /**
  * Processes all console options
  *
  * If the help option is specified by the user the help text will be
  * displayed and the program will exit.
  *
  * @param ezcConsoleInput $consoleInput
  */
 protected static function processConsoleArguments($consoleInput)
 {
     try {
         $consoleInput->process();
     } catch (ezcConsoleOptionException $e) {
         die($e->getMessage() . "\n");
     }
     if ($consoleInput->getOption("help")->value) {
         self::displayHelp(self::$consoleInput);
         exit;
     }
     if ($consoleInput->getOption('php-binary')->value) {
         self::$phpBinary = $consoleInput->getOption('php-binary')->value;
     }
 }