Commit 455e18c6 authored by Dries's avatar Dries

- Patch #222236 by Rob Loach: drupal.sh with no arguments now prints the help...

- Patch #222236 by Rob Loach: drupal.sh with no arguments now prints the help text instead of giving an error.
parent 70eb02df
......@@ -14,7 +14,7 @@
*/
$script = basename(array_shift($_SERVER['argv']));
if (in_array('--help', $_SERVER['argv'])) {
if (in_array('--help', $_SERVER['argv']) || empty($_SERVER['argv'])) {
echo <<<EOF
Execute a Drupal page from the shell.
......
Markdown is supported
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