Make maintenance scripts fail on unknown parameters
authorBill Pirkle <bpirkle@wikimedia.org>
Thu, 2 Aug 2018 20:10:31 +0000 (15:10 -0500)
committerBill Pirkle <bpirkle@wikimedia.org>
Mon, 6 Aug 2018 19:37:49 +0000 (14:37 -0500)
commit2bd7259a2c88a2bcc30a9217770a64268e161305
tree163252e7f24610d1c9bb631adfa8bade87b4a6ff
parenta14133e55c0d4bceca030a9bdb373f3ff84c15ed
Make maintenance scripts fail on unknown parameters

Passing parameters not registered via standard mechanisms
(addOption/$optionsWithArgs/$optionsWihtoutArgs) will now
cause an error, unless, the script opts out via the new
setAllowUnregisteredOptions/$allowUnregisteredOptions.

Bug: T110209
Change-Id: I21957837f10852169ca3e1eeca9bf1f4052f8c0b
maintenance/Maintenance.php
maintenance/commandLine.inc
tests/phpunit/phpunit.php