X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmcc.php;h=e70060e2f693f19a55ca2f673b43606b94821ed1;hb=38d5d59a6617dfb6a4aa41ae6da8645a5e8a3c53;hp=0fff823a0f5e042c6a32e537e868124044ce0a3b;hpb=3071f1fad720f1773864621158a0c59b73124896;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();