mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Control when no action is provided.
This commit is contained in:
@@ -18,6 +18,10 @@ class Mage_Console
|
||||
|
||||
public function parse()
|
||||
{
|
||||
if (count($this->_args) == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->_args[0] == 'deploy') {
|
||||
$this->_action = 'deploy';
|
||||
|
||||
@@ -176,6 +180,10 @@ class Mage_Console
|
||||
case 'version';
|
||||
$this->showVersion();
|
||||
break;
|
||||
|
||||
default:
|
||||
Mage_Console::output('<red>Invalid action</red>', 0, 2);
|
||||
break;
|
||||
}
|
||||
|
||||
if ($showGrettings) {
|
||||
|
||||
Reference in New Issue
Block a user