Fix behavior of --plugin param

Since plugins are not loaded in bootstrap, this is a good place to do it.
This commit is contained in:
Sethrin 2012-11-22 12:40:46 -05:00 committed by mark_story
parent 85c7ef8ec4
commit c727444880

View file

@ -372,7 +372,9 @@ class Shell extends Object {
if (!empty($this->params['quiet'])) {
$this->_useLogger(false);
}
if (!empty($this->params['plugin'])) {
CakePlugin::load($this->params['plugin']);
}
$this->command = $command;
if (!empty($this->params['help'])) {
return $this->_displayHelp($command);