New array syntax

This commit is contained in:
Jansen Price 2020-08-26 17:58:25 -05:00
parent 1a48642baa
commit 2f6d457235
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ require_once dirname(__DIR__) . "/vendor/autoload.php";
// 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)',
@ -17,7 +17,7 @@ $args = new \Qi_Console_ArgV(
'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);