New array syntax
This commit is contained in:
parent
1a48642baa
commit
2f6d457235
|
@ -7,7 +7,7 @@ require_once dirname(__DIR__) . "/vendor/autoload.php";
|
||||||
// And fetch args passed in by invocation
|
// And fetch args passed in by invocation
|
||||||
$args = new \Qi_Console_ArgV(
|
$args = new \Qi_Console_ArgV(
|
||||||
$argv,
|
$argv,
|
||||||
array(
|
[
|
||||||
'host|h:' => 'Set host/ip address to listen on (default 0.0.0.0)',
|
'host|h:' => 'Set host/ip address to listen on (default 0.0.0.0)',
|
||||||
'port|p:' => 'Set port to listen on (default 1965)',
|
'port|p:' => 'Set port to listen on (default 1965)',
|
||||||
'pem-cert:' => 'Set cert PEM file to use (default ./server.pem)',
|
'pem-cert:' => 'Set cert PEM file to use (default ./server.pem)',
|
||||||
|
@ -17,7 +17,7 @@ $args = new \Qi_Console_ArgV(
|
||||||
'quiet|q' => 'Print less messages',
|
'quiet|q' => 'Print less messages',
|
||||||
'no-color' => 'Don\'t use color output',
|
'no-color' => 'Don\'t use color output',
|
||||||
'version' => 'Show version and exit',
|
'version' => 'Show version and exit',
|
||||||
)
|
]
|
||||||
);
|
);
|
||||||
$terminal = new \Qi_Console_Terminal();
|
$terminal = new \Qi_Console_Terminal();
|
||||||
$error_handler = new \Qi_Console_ExceptionHandler($terminal, true);
|
$error_handler = new \Qi_Console_ExceptionHandler($terminal, true);
|
||||||
|
|
Loading…
Reference in New Issue