HomePhabricator

Fix error message if MWScript.php is run without arguments

Description

Fix error message if MWScript.php is run without arguments

Before:
$ php /srv/mediawiki-staging/multiversion/MWScript.php
This script can only be run from the command line.

After:
$ php /srv/mediawiki-staging/multiversion/MWScript.php
Usage: php /srv/mediawiki-staging/multiversion/MWScript.php SCRIPT --wiki=WIKI <script args>

SCRIPT must be the relative (to MediaWiki) script file path.
If only a filename is given, it will be assumed to reside in /maintenance.

The --wiki option is required for most maintenance scripts.

Change-Id: I1f925be43ad1b633b338baeaa34b54b61899cd99

Details

Provenance
dancyAuthored on Apr 14 2021, 4:18 PM
jenkins-botCommitted on Apr 26 2021, 6:04 PM
Parents
rOMWCfadd2cd70ad6: Make DiscussionTool's sourcemodetoolbar available on labs
Branches
Unknown
Tags
Unknown
ChangeId
I1f925be43ad1b633b338baeaa34b54b61899cd99

Event Timeline