aboutsummaryrefslogtreecommitdiff
path: root/cli/manipulate.translation.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/manipulate.translation.php')
-rwxr-xr-xcli/manipulate.translation.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php
index b52451681..947739384 100755
--- a/cli/manipulate.translation.php
+++ b/cli/manipulate.translation.php
@@ -5,11 +5,12 @@ require_once __DIR__ . '/i18n/I18nData.php';
require_once __DIR__ . '/i18n/I18nFile.php';
require_once __DIR__ . '/../constants.php';
-/** @var array<string,string> $options */
-$options = getopt("a:hk:l:o:rv:");
+/** @var array<string,string>|false $options */
+$options = getopt('a:hk:l:o:rv:');
-if (array_key_exists('h', $options)) {
+if (!is_array($options) || array_key_exists('h', $options)) {
manipulateHelp();
+ exit();
}
if (!array_key_exists('a', $options)) {