Пример #1
0
 private static function printHelp()
 {
     $term = new Terminal();
     echo 'phpDaemon ' . Daemon::$version . ". Made in Russia. http://phpdaemon.net\n";
     self::printUsage();
     echo "\nAlso you can use some optional parameters to override the same configuration variables:\n";
     foreach (self::$params as $name => $desc) {
         if (empty($desc)) {
             continue;
         } elseif (!is_array($desc)) {
             $term->drawParam($name, $desc);
         } else {
             $term->drawParam($name, isset($desc['desc']) ? $desc['desc'] : '', isset($desc['val']) ? $desc['val'] : '');
         }
     }
     echo "\n";
 }