3 * @addtogroup Maintenance
7 $optionsWithArgs = array( 'm', 'e' );
9 require_once( "commandLine.inc" );
10 require_once( "refreshLinks.inc" );
12 if( isset( $options['help'] ) ) {
14 Usage: php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] [--help]
16 --help : This help message
17 --dfn-only : Delete links from nonexistent articles only
18 -m <number> : Maximum replication lag
19 <start> : First page id to refresh
20 -e <number> : Last page id to refresh
26 error_reporting( E_ALL
& (~E_NOTICE
) );
28 if ( !$options['dfn-only'] ) {
29 if ( isset( $args[0] ) ) {
30 $start = (int)$args[0];
35 refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'] );
37 // this bit's bad for replication: disabling temporarily
39 //deleteLinksFromNonexistent();
41 if ( $options['globals'] ) {