Add a shebang to the commandline script.

This commit is contained in:
Daniel Kraus
2022-03-13 12:21:51 +01:00
parent 8061213e57
commit 499412f61f
3 changed files with 11 additions and 4 deletions

View File

@ -11,7 +11,9 @@ For changes prior to version 6.0.0, please see [`NEWS.old`](news.old).
### New
- Added a `--verbose` (`-v`) option to the command line script.
- Added a `--verbose` (`-v`) option to the commandline script.
- Added a 'shebang' line to the commandline script so that it can be invoked
directly.
### Fixed

View File

@ -213,18 +213,22 @@ To continue parsing at a later time, make a note of the index number of the last
page that was processed (e.g., 37), and use the maintenance script with the
`--start` option (or short `-s`) to indicate the start index:
php linktitles-cli.php -s 37
php extensions/LinkTitles/linktitles-cli.php -s 37
For more verbose output that also includes the page title, use the `--verbose`
option (or short `-v`):
php linktitles-cli.php -s 37 -v
php extensions/LinkTitles/linktitles-cli.php -s 37 -v
In verbose mode, the script will output all page titles one by one.
See all available options with:
php linktitles-cli.php -h
php extensions/LinkTitles/linktitles-cli.php -h
Depending on your shell, you may omit the `php` and call the script directly:
extensions/LinkTitles/linktitles-cli.php
## Configuration

View File

@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
/**