From 4def5cca8aeb85390c0f82c9445ee228ac40a7f3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 18 Sep 2006 23:38:21 +0000 Subject: Add CommandLine quickstart doc. --- framework/prado-cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 58e274fe..894d8adc 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -33,7 +33,7 @@ restore_exception_handler(); //run it; PradoCommandLineInterpreter::run($_SERVER['argv']); -if(strtolower($_SERVER['argv'][1])==='shell') +if(count($_SERVER['argv']) > 1 && strtolower($_SERVER['argv'][1])==='shell') include_once(dirname(__FILE__).'/3rdParty/PhpShell/php-shell-cmd.php'); class PradoCommandLineInterpreter -- cgit v1.2.3