Browse Source

Control when no action is provided.

1.0
Andrs Montaez 13 years ago
parent
commit
bff9e1a8ef
  1. 8
      Mage/Console.php

8
Mage/Console.php

@ -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) {

Loading…
Cancel
Save