2022-03-30 13:54:23 +02:00
|
|
|
#!/usr/bin/keyhelp-php81 -d apc.enable_cli=1
|
2018-11-04 15:41:54 +01:00
|
|
|
<?php
|
|
|
|
|
2022-03-30 13:54:23 +02:00
|
|
|
use App\UpdateController;
|
2018-11-04 15:41:54 +01:00
|
|
|
|
2022-03-30 13:54:23 +02:00
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2019-07-29 00:39:27 +02:00
|
|
|
|
2022-03-30 13:54:23 +02:00
|
|
|
$update = new UpdateController();
|
2023-05-29 15:07:19 +02:00
|
|
|
|
|
|
|
$options = $update->parseOpts();
|
|
|
|
|
|
|
|
// Help option
|
|
|
|
if (array_key_exists(key: 'h', array: $options) || array_key_exists(key: 'help', array: $options)) {
|
|
|
|
$update->printHelp();
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (array_key_exists(key: 'd', array: $options) || array_key_exists(key: 'dry-run', array: $options)) {
|
|
|
|
$update->setDryRun();
|
|
|
|
}
|
|
|
|
|
2022-03-30 13:54:23 +02:00
|
|
|
$update->handleUpdate();
|