maintenance: Add file extension as expected for PHP scripts

The example in the block comment above uses the .php file extension
in the example but the usage string omits it and it can be misleading.

If the extension (.php) is not given, `runScript.php` will think that
the script doesn't exist and trigger a different code path rather than
actually run the script in question.

Change-Id: I4d60f65629472f2243ead2c8768f597ae23b6beb
This commit is contained in:
Derick A 2020-01-29 11:28:28 +01:00
parent beb5aa641b
commit fd02dc6aac

View file

@ -47,7 +47,7 @@ require_once "$IP/maintenance/Maintenance.php";
if ( !isset( $argv[1] ) ) {
fwrite( STDERR, "This script requires a maintenance script as an argument.\n"
. "Usage: runScript.php extensions/Wikibase/lib/maintenance/dispatchChanges\n" );
. "Usage: php runScript.php extensions/Wikibase/lib/maintenance/dispatchChanges.php\n" );
exit( 1 );
}