diff --git a/NEWS.md b/NEWS.md index c1bcef6..867dfe8 100644 --- a/NEWS.md +++ b/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 diff --git a/README.md b/README.md index fe3282a..b4c363d 100644 --- a/README.md +++ b/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 diff --git a/linktitles-cli.php b/linktitles-cli.php index 912d88c..83f9ad3 100755 --- a/linktitles-cli.php +++ b/linktitles-cli.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php