From: Merlijn S. van Deen Date: Wed, 7 Jan 2009 20:34:33 +0000 (+0000) Subject: * Added batch-size parameter to optionsWithArgs X-Git-Tag: 1.31.0-rc.0~43510 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=ec78d58caa0749d2d065d802227e0c4676c7216e;p=lhc%2Fweb%2Fwiklou.git * Added batch-size parameter to optionsWithArgs * Added --batch-size example syntax --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index aa91e1b510..fa91160266 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -5,7 +5,7 @@ */ /** */ -$optionsWithArgs = array( 'm', 'e' ); +$optionsWithArgs = array('batch-size', 'm', 'e' ); require_once( "commandLine.inc" ); require_once( "refreshLinks.inc" ); @@ -15,13 +15,13 @@ if( isset( $options['help'] ) ) { Usage: php refreshLinks.php --help php refreshLinks.php [] [-e ] [-m ] [--dfn-only] - [--new-only] [--redirects-only] + [--batch-size ] [--new-only] [--redirects-only] php refreshLinks.php [] [-e ] [-m ] --old-redirects-only --help : This help message --dfn-only : Delete links from nonexistent articles only --batch-size : The delete batch size when removing links from - nonexistent articles (default 100) + nonexistent articles (defaults to 100) --new-only : Only affect articles with just a single edit --redirects-only : Only fix redirects, not all links --old-redirects-only : Only fix redirects with no redirect table entry