tools/import_article.php: fix usage

This commit is contained in:
E. S. 2025-02-08 04:41:05 +03:00
parent f53f467e0b
commit 4ca0335714

View File

@ -41,7 +41,7 @@ exit(0);
function getInput() {
global $argv;
$usage = "usage: $argv[0] --ru ./ru.txt --en ./en.txt --ru-title TITLE --en-title TITLE\n";
$usage = "usage: $argv[0] --ru ./ru.txt --en ./en.txt --ru-title TITLE --en-title TITLE --short-name NAME\n";
$option_names = ['ru', 'en', 'ru-title', 'en-title', 'short-name'];
$options = getopt('', array_map(fn($o) => $o.':', $option_names));
foreach ($option_names as $option_name) {