refactor getopt() call

This commit is contained in:
Art4 2024-12-26 13:57:46 +00:00
parent 06f0c6c32c
commit 51b24cbac9

View file

@ -23,9 +23,7 @@ use Friendica\DI;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
// Get options // Get options
$shortopts = 'sn'; $options = getopt('sn', ['spawn', 'no_cron']);
$longopts = ['spawn', 'no_cron'];
$options = getopt($shortopts, $longopts);
// Ensure that worker.php is executed from the base path of the installation // Ensure that worker.php is executed from the base path of the installation
chdir(dirname(__DIR__)); chdir(dirname(__DIR__));