This commit is contained in:
parent
a7f7fc6f9f
commit
86808c2342
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
<?php
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
// 使用 getopt 函数解析命令行参数
|
||||
$options = getopt('h::', ['APP_ENV::', 'help::']);
|
||||
@ -14,3 +14,4 @@ if (isset($options['APP_ENV'])) {
|
||||
putenv('APP_ENV='.$options['APP_ENV']);
|
||||
}
|
||||
\libs\core\App::run();
|
||||
|
Loading…
x
Reference in New Issue
Block a user