1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 12:40:18 +02:00

Control when no action is provided.

This commit is contained in:
Andrs Montaez 2012-02-04 15:45:28 -02:00
parent 43d730f087
commit bff9e1a8ef

View File

@ -18,6 +18,10 @@ class Mage_Console
public function parse() public function parse()
{ {
if (count($this->_args) == 0) {
return false;
}
if ($this->_args[0] == 'deploy') { if ($this->_args[0] == 'deploy') {
$this->_action = 'deploy'; $this->_action = 'deploy';
@ -176,6 +180,10 @@ class Mage_Console
case 'version'; case 'version';
$this->showVersion(); $this->showVersion();
break; break;
default:
Mage_Console::output('<red>Invalid action</red>', 0, 2);
break;
} }
if ($showGrettings) { if ($showGrettings) {