original_string: protected function getDescribedCommand($args)
  	{
  		$this->describedCommand = $command = $this->getParent();
  
  		foreach ($args as $arg)
  		{
  			$command = $command->getChild($arg);
  
  			if (!$command)
  			{
  				throw new CommandNotFoundException(sprintf('Command: "%s" not found.', implode(' ', $args)), $this->describedCommand, $arg);
  			}
  
  			// Set current to describedCommand that we can use it auto complete wrong args.
  			$this->describedCommand = $command;
  		}
  
  		return $command;
  	}
code: protected function getDescribedCommand($args)
  	{
  		$this->describedCommand = $command = $this->getParent();
  
  		foreach ($args as $arg)
  		{
  			$command = $command->getChild($arg);
  
  			if (!$command)
  			{
  				throw new CommandNotFoundException(sprintf('Command: "%s" not found.', implode(' ', $args)), $this->describedCommand, $arg);
  			}
  
  			// Set current to describedCommand that we can use it auto complete wrong args.
  			$this->describedCommand = $command;
  		}
  
  		return $command;
  	}
code_tokens: protected function getDescribedCommand ( $ args ) { $ this -> describedCommand = $ command = $ this -> getParent ( ) ; foreach ( $ args as $ arg ) { $ command = $ command -> getChild ( $ arg ) ; if ( ! $ command ) { throw new CommandNotFoundException ( sprintf ( 'Command: "%s" not found.' , implode ( ' ' , $ args ) ) , $ this -> describedCommand , $ arg ) ; } // Set current to describedCommand that we can use it auto complete wrong args. $ this -> describedCommand = $ command ; } return $ command ; }
docstring: Get the command we want to describe.
  
  @param   array  $args  Arguments of this execute.
  
  @return  AbstractCommand|null
  
  @since  1.0
  
  @throws  CommandNotFoundException
docstring_tokens: Get the command we want to describe .