getopt

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Gets options from the command line argument list
<?php getopt(string $short_options, array $long_options = [], int &$rest_index = null): array|false
<?php });



(static function () use ($bootPest): void {

    $getopt = getopt('', [

        'status-file:',

        'progress-file:',

        'unexpected-output-file:',

        'testresult-file:',

        'teamcity-file:',

        'testdox-file:',

        'testdox-color',

        'phpunit-argv:',

    ]);



    $composerAutoloadFiles = [

        dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'autoload.php',
<?php require __DIR__ . '/../vendor/autoload.php';



$args = getopt('t:l:r:');

$t  = isset($args['t']) ? (int)$args['t'] : 0;

$loop = isset($args['l']) && class_exists('React\EventLoop\\' . $args['l'] . 'Loop') ? 'React\EventLoop\\' . $args['l'] . 'Loop' : Loop::get();