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;
	}
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;
	}
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 ; }
Get the command we want to describe.

@param   array  $args  Arguments of this execute.

@return  AbstractCommand|null

@since  1.0

@throws  CommandNotFoundException
Get the command we want to describe .