X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmcc.php;h=e70060e2f693f19a55ca2f673b43606b94821ed1;hb=3a67bd4a2c2957fdd9cda138f5ecdd85c5dc5085;hp=0fff823a0f5e042c6a32e537e868124044ce0a3b;hpb=601519ee36462faabacf4547c9aefaf7e8726476;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mcc.php b/maintenance/mcc.php index 0fff823a0f..e70060e2f6 100644 --- a/maintenance/mcc.php +++ b/maintenance/mcc.php @@ -22,14 +22,15 @@ * @ingroup Maintenance */ -/** */ +$optionsWithArgs = [ 'cache' ]; +$optionsWithoutArgs = [ + 'debug', 'help' +]; require_once __DIR__ . '/commandLine.inc'; -$options = getopt( '', [ 'debug', 'help', 'cache:' ] ); - $debug = isset( $options['debug'] ); $help = isset( $options['help'] ); -$cache = isset( $options['cache'] ) ? $options['cache'] : null; +$cache = $options['cache'] ?? null; if ( $help ) { mccShowUsage();