mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
add show-debug option to api docs generator
This commit is contained in:
parent
371926b5a6
commit
50d27ee186
@ -91,16 +91,15 @@ use Jasny\PhpdocParser\Set\PhpDocumentor;
|
||||
use Jasny\PhpdocParser\Tag\Summery;
|
||||
use ZM\Console\Console;
|
||||
|
||||
var_dump('hi');
|
||||
$opts = getopt('', ['show-warnings', 'show-debug']);
|
||||
|
||||
$opts = getopt('', ['show-warnings']);
|
||||
if (array_key_exists('show-warnings', $opts)) {
|
||||
$show_warnings = true;
|
||||
} else {
|
||||
$show_warnings = false;
|
||||
}
|
||||
|
||||
Console::init(4);
|
||||
Console::init(array_key_exists('show-debug', $opts) ? 4 : 2);
|
||||
|
||||
$errors = [];
|
||||
$warnings = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user