mirror of
https://github.com/moodle/moodle.git
synced 2025-03-25 01:50:55 +01:00
Merge branch 'MDL-81949' of https://github.com/paulholden/moodle
This commit is contained in:
commit
95dfd66a8d
@ -57,7 +57,13 @@ list($options, $unrecognized) = cli_get_params(
|
||||
)
|
||||
);
|
||||
|
||||
if ($options['help'] || $options['search'] === null || $options['replace'] === null) {
|
||||
if ($unrecognized) {
|
||||
$unrecognized = implode("\n ", $unrecognized);
|
||||
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
|
||||
}
|
||||
|
||||
// Ensure that user has populated both the search/replace parameters.
|
||||
if ($options['help'] || !is_string($options['search']) || !is_string($options['replace'])) {
|
||||
echo $help;
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user