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:
parent
43d730f087
commit
bff9e1a8ef
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user