4 * @addtogroup Maintenance
8 $optionsWithArgs = array( 'm', 'e' );
10 require_once( "commandLine.inc" );
11 require_once( "refreshLinks.inc" );
13 if( isset( $options['help'] ) ) {
15 usage: php refreshLinks.php start [-e end] [-m maxlag] [--help] [possibly other
18 --help : This help message
20 -m <number> : Specifies max replication lag? Does it abort or wait if this
22 start : First page id to refresh? Doesn't work with --dfn-only set?
23 -e <number> : Last page id to refresh?
25 This uses wfGetDB() to get the database, it seems not to accept a database ar-
26 gument on the command line. So I don't know if you can use it for non-default
29 Todo: Real documentation.
35 error_reporting( E_ALL
& (~E_NOTICE
) );
37 if ( !$options['dfn-only'] ) {
39 $start = (int)$args[0];
44 refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'] );
46 // this bit's bad for replication: disabling temporarily
48 //deleteLinksFromNonexistent();
50 if ( $options['globals'] ) {