src/Handler.php
public function addArgument($name, Argument $arg = null) {
        if (isset($this->configOpts[$name]) || isset($this->configArgs[$name])) {
            throw new ConfigException('option/argument already set: ' . $name);
        }

        if (is_null($arg)) {
            $arg = new Argument();
        }

        $this->configArgs[$name] = $arg;
        return $arg;
    }
public function addArgument($name, Argument $arg = null) {
        if (isset($this->configOpts[$name]) || isset($this->configArgs[$name])) {
            throw new ConfigException('option/argument already set: ' . $name);
        }

        if (is_null($arg)) {
            $arg = new Argument();
        }

        $this->configArgs[$name] = $arg;
        return $arg;
    }
public function addArgument ( $ name , Argument $ arg = null ) { if ( isset ( $ this -> configOpts [ $ name ] ) || isset ( $ this -> configArgs [ $ name ] ) ) { throw new ConfigException ( 'option/argument already set: ' . $ name ) ; } if ( is_null ( $ arg ) ) { $ arg = new Argument ( ) ; } $ this -> configArgs [ $ name ] = $ arg ; return $ arg ; }
add a new argument

@param $name
@param Argument $arg
@return Argument
@throws ConfigException
add a new argument