public function getArgument($name)
    {
        if (!$this->hasArgument($name)) {
            throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
        }

        $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;

        return $arguments[$name];
    }
public function getArgument($name)
    {
        if (!$this->hasArgument($name)) {
            throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
        }

        $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;

        return $arguments[$name];
    }
public function getArgument ( $ name ) { if ( ! $ this -> hasArgument ( $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'The "%s" argument does not exist.' , $ name ) ) ; } $ arguments = \ is_int ( $ name ) ? array_values ( $ this -> arguments ) : $ this -> arguments ; return $ arguments [ $ name ] ; }
Returns an InputArgument by name or by position.

@param string|int $name The InputArgument name or position

@return InputArgument An InputArgument object

@throws InvalidArgumentException When argument given doesn't exist
Returns an InputArgument by name or by position .