orbit/bin/orbit
2020-08-26 17:57:01 -05:00

28 lines
926 B
PHP
Executable file

#!/usr/bin/env php
<?php
require_once dirname(__DIR__) . "/vendor/autoload.php";
// Define command line args for this client
// And fetch args passed in by invocation
$args = new \Qi_Console_ArgV(
$argv,
array(
'host|h:' => 'Set host/ip address to listen on (default 0.0.0.0)',
'port|p:' => 'Set port to listen on (default 1965)',
'pem-cert:' => 'Set cert PEM file to use (default ./server.pem)',
'log:' => 'Set log filename (default orbit.log)',
'help|h' => 'Show help',
'verbose|v' => 'Include more verbose output',
'quiet|q' => 'Print less messages',
'no-color' => 'Don\'t use color output',
'version' => 'Show version and exit',
)
);
$terminal = new \Qi_Console_Terminal();
$error_handler = new \Qi_Console_ExceptionHandler($terminal, true);
$console = new \Orbit\Console($args, $terminal);
$value = $console->execute();
exit($value);