mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-03 16:50:16 +01: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()
 | 
					    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…
	
		Reference in New Issue
	
	Block a user