dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add @var to class properties to clarify types"
[lhc/web/wiklou.git]
/
maintenance
/
mcc.php
diff --git
a/maintenance/mcc.php
b/maintenance/mcc.php
index
0fff823
..
e70060e
100644
(file)
--- a/
maintenance/mcc.php
+++ b/
maintenance/mcc.php
@@
-22,14
+22,15
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-/** */
+$optionsWithArgs = [ 'cache' ];
+$optionsWithoutArgs = [
+ 'debug', 'help'
+];
require_once __DIR__ . '/commandLine.inc';
require_once __DIR__ . '/commandLine.inc';
-$options = getopt( '', [ 'debug', 'help', 'cache:' ] );
-
$debug = isset( $options['debug'] );
$help = isset( $options['help'] );
$debug = isset( $options['debug'] );
$help = isset( $options['help'] );
-$cache =
isset( $options['cache'] ) ? $options['cache'] :
null;
+$cache =
$options['cache'] ??
null;
if ( $help ) {
mccShowUsage();
if ( $help ) {
mccShowUsage();