diff --git a/cli-script.php b/cli-script.php index 8440233a1..6bbe64d92 100755 --- a/cli-script.php +++ b/cli-script.php @@ -50,6 +50,12 @@ if(isset($_SERVER['argv'][2])) { $_REQUEST = $_GET; } +// Set 'url' GET parameter +if(isset($_SERVER['argv'][1])) { + $_REQUEST['url'] = $_SERVER['argv'][1]; + $_GET['url'] = $_SERVER['argv'][1]; +} + /** * Include Sapphire's core code */