diff options
author | ctrlaltca <> | 2012-07-09 07:30:31 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-09 07:30:31 +0000 |
commit | 698affb2df2750c9727d718b8ad0c9bab4cd9794 (patch) | |
tree | 8c24fe31bc1adcd7fd8c39613c0f3c22c4847a5d | |
parent | 8cf1ed4c4a4b10b6ec1e42901727110d0bfd78e1 (diff) |
fix #415
-rw-r--r-- | HISTORY | 1 | ||||
-rwxr-xr-x | framework/prado-cli.php | 15 |
2 files changed, 12 insertions, 4 deletions
@@ -3,6 +3,7 @@ Version 3.2.1 to be released BUG: Issue #412 - open_basedir restriction (ctrlaltca) BUG: Issue #413 - TActiveDatePicker does not fire TCallbackClientSide's events (ctrlaltca) BUG: Issue #414 - ActiveDatagrid's pager does not fire TCallbackClientSide's events (ctrlaltca) +BUG: Issue #415 - prado-cli throws an error if the application is making use of THttpSession (ctrlaltca) Version 3.2.0 Jun 25, 2012 BUG: Fixed an inconsistency in TRegularExpressionValidator diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 25df7976..a2930b42 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -85,14 +85,17 @@ class PradoCommandLineInterpreter return $instance; } + public static function printGreeting() + { + echo "Command line tools for Prado ".Prado::getVersion().".\n"; + } + /** * Dispatch the command line actions. * @param array command line arguments */ public function run($args) { - echo "Command line tools for Prado ".Prado::getVersion().".\n"; - if(count($args) > 1) array_shift($args); $valid = false; @@ -117,6 +120,8 @@ class PradoCommandLineInterpreter */ public function printHelp() { + PradoCommandLineInterpreter::printGreeting(); + echo "usage: php prado-cli.php action <parameter> [optional]\n"; echo "example: php prado-cli.php -c mysite\n\n"; echo "actions:\n"; @@ -198,6 +203,7 @@ EOD; $app->run(); $dir = substr(str_replace(realpath('./'),'',$app_dir),1); $initialized=true; + PradoCommandLineInterpreter::printGreeting(); echo '** Loaded PRADO appplication in directory "'.$dir."\".\n"; } @@ -205,6 +211,7 @@ EOD; } else { + PradoCommandLineInterpreter::printGreeting(); echo '+'.str_repeat('-',77)."+\n"; echo '** Unable to load PRADO application in directory "'.$directory."\".\n"; echo '+'.str_repeat('-',77)."+\n"; @@ -230,6 +237,7 @@ class PradoCommandLineCreateProject extends PradoCommandLineAction public function performAction($args) { + PradoCommandLineInterpreter::printGreeting(); $this->createNewPradoProject($args[1]); return true; } @@ -381,6 +389,7 @@ class PradoCommandLineCreateTests extends PradoCommandLineAction public function performAction($args) { + PradoCommandLineInterpreter::printGreeting(); $this->createTestFixtures($args[1]); return true; } @@ -870,5 +879,3 @@ if(class_exists('PHP_Shell_Commands', false)) include_once(dirname(__FILE__).'/3rdParty/PhpShell/php-shell-cmd.php'); } - -?> |