Move the check for if a Maintenance script supports --batch-size away from addDefault...
authorBrian Wolff <bawolff@users.mediawiki.org>
Thu, 25 Aug 2011 05:15:45 +0000 (05:15 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Thu, 25 Aug 2011 05:15:45 +0000 (05:15 +0000)
commiteb013851a5cdf81fae27e7e3807c7be635f94a02
tree222051ef71376ee3aa95a57a999841a48d6998ae
parent6857bb3df6841f8b85e3ead901bbb70c745b48c3
Move the check for if a Maintenance script supports --batch-size away from addDefaultParams()
and to setBatchSize(), since setBatchSize is usually called in a subclass constructor after
parent:__construct() which is after addDefaultParams() is called.

Upside of this is lots of scripts supporting --batch-size now list it in their help output.
RELEASE-NOTES-1.19
maintenance/Maintenance.php