From: lens0021 Date: Mon, 2 Dec 2019 01:32:25 +0000 (+0900) Subject: Mark options as requiring parameters in addSite.php X-Git-Tag: 1.31.6~9 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=4f942e4377c3f8fcaabb29a41c164ae3f319cd80 Mark options as requiring parameters in addSite.php Bug: T239561 Change-Id: Ibd967da45f32c8ea58b8997f15d26ab06f1e14cb --- diff --git a/maintenance/addSite.php b/maintenance/addSite.php index 4953343fd9..7bc292ec90 100644 --- a/maintenance/addSite.php +++ b/maintenance/addSite.php @@ -21,13 +21,13 @@ class AddSite extends Maintenance { $this->addArg( 'globalid', 'The global id of the site to add, e.g. "wikipedia".', true ); $this->addArg( 'group', 'In which group this site should be sorted in.', true ); - $this->addOption( 'language', 'The language code of the site, e.g. "de".' ); - $this->addOption( 'interwiki-id', 'The interwiki ID of the site.' ); - $this->addOption( 'navigation-id', 'The navigation ID of the site.' ); + $this->addOption( 'language', 'The language code of the site, e.g. "de".', false, true ); + $this->addOption( 'interwiki-id', 'The interwiki ID of the site.', false, true ); + $this->addOption( 'navigation-id', 'The navigation ID of the site.', false, true ); $this->addOption( 'pagepath', 'The URL to pages of this site, e.g.' . - ' https://example.com/wiki/\$1.' ); - $this->addOption( 'filepath', 'The URL to files of this site, e.g. https://example - .com/w/\$1.' ); + ' https://example.com/wiki/\$1.', false, true ); + $this->addOption( 'filepath', 'The URL to files of this site, e.g. https://example' . + '.com/w/\$1.', false, true ); parent::__construct(); }