Commit c8cd0c87 authored by Liam Morland's avatar Liam Morland
Browse files

run-tests.php: Move help CLI options to their own line

parent d7beeaad
......@@ -6,7 +6,8 @@
*/
$site_to_test = $_SERVER['argv'][1] ?? NULL;
if (!$site_to_test || in_array($site_to_test, ['-h', '--help', '-v', '--version'])) {
$help_strings = ['-h', '--help', '-v', '--version'];
if (!$site_to_test || in_array($site_to_test, $help_strings)) {
$script = basename($_SERVER['argv'][0]);
echo 'Usage: ' . $script . " URL-TO-TEST [ADDITIONAL-ARGUMENTS ...]\n";
echo "In Drupal 8, pass the argument --suppress-deprecations.\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment