From: TheSandDoctor Date: Mon, 23 Sep 2019 17:24:19 +0000 (-0700) Subject: Maintenance.php: Fix mwdebug error X-Git-Tag: 1.34.0-rc.0~103^2 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;ds=sidebyside;h=d6f4189088fa35a5977357b8d47244b73d29ef86;p=lhc%2Fweb%2Fwiklou.git Maintenance.php: Fix mwdebug error Resolve error with showJobs.php --mwdebug option. Previously, it displayed an error if not followed by "=1". This was resolved by changing $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, true ); to $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, false ); Bug: T233257 Change-Id: I322fa539a302c2726fffd2420f7f56aec476b32b --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index f89fa6281a..f741cd2653 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -587,7 +587,7 @@ abstract class Maintenance { "server name detection may fail in command line scripts.", false, true ); $this->addOption( 'profiler', 'Profiler output format (usually "text")', false, true ); // This is named --mwdebug, because --debug would conflict in the phpunit.php CLI script. - $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, true ); + $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, false ); # Save generic options to display them separately in help $this->mGenericParameters = $this->mParams;