mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-12 17:29:30 +02:00
Add a shebang to the commandline script.
This commit is contained in:
4
NEWS.md
4
NEWS.md
@ -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
|
||||
|
||||
|
10
README.md
10
README.md
@ -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
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user