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