Use Maintenance::addDescription

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

Change-Id: I1df2d03cfaede53867daf9db8e26af5931c77ef9
This commit is contained in:
Umherirrender 2019-08-19 19:59:17 +02:00
parent a48338b5d7
commit a72741e313
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ class MathGenerateTests extends Maintenance {
public function __construct() {
parent::__construct();
$this->requireExtension( 'Math' );
$this->mDescription = 'Rebuilds the MathCoverage tests';
$this->addDescription( 'Rebuilds the MathCoverage tests' );
$this->addArg( 'page', "The page used for the testset generation.", false );
$this->addOption(
'offset', "If set the first n equations on the page are skipped", false, true, "o"

View file

@ -13,7 +13,7 @@ class DummyTest extends Maintenance {
public function __construct() {
parent::__construct();
$this->requireExtension( 'Math' );
$this->mDescription = 'Test Mathoid CLI';
$this->addDescription( 'Test Mathoid CLI' );
$this->addArg( 'page', "The page used for the testset generation.", false );
$this->addOption( 'offset', "If set the first n equations on the page are skipped", false,
true, "o" );