Use Maintenance::addDescription

It is better to use a setter function than setting a property

Change-Id: I64c133f00ea12cc5ba787c83ad3dee5f996baf15
This commit is contained in:
Umherirrender 2019-08-19 18:53:57 +02:00
parent 4bebd22e3f
commit cd4e0a5968

View file

@ -13,7 +13,7 @@ require_once "$IP/maintenance/Maintenance.php";
class FixOldLogEntries extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
$this->mDescription = 'Fix old rows in logging which hold broken log_params';
$this->addDescription( 'Fix old rows in logging which hold broken log_params' );
$this->addOption( 'verbose', 'Print some more debug info' );
$this->addOption( 'dry-run', 'Perform a dry run' );