add show-debug option to api docs generator

This commit is contained in:
sunxyw 2022-04-15 23:43:21 +08:00
parent 371926b5a6
commit 50d27ee186
No known key found for this signature in database
GPG Key ID: CEA01A083E98C578

View File

@ -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 = [];