private function createArgs(ArgsFormat $format, RawArgs $rawArgs)
    {
        $args = new Args($format, $rawArgs);

        foreach ($this->arguments as $name => $value) {
            // Filter command names
            if ($format->hasArgument($name)) {
                $args->setArgument($name, $value);
            }
        }

        foreach ($this->options as $name => $value) {
            // Filter command options
            if ($format->hasOption($name)) {
                $args->setOption($name, $value);
            }
        }

        return $args;
    }
private function createArgs(ArgsFormat $format, RawArgs $rawArgs)
    {
        $args = new Args($format, $rawArgs);

        foreach ($this->arguments as $name => $value) {
            // Filter command names
            if ($format->hasArgument($name)) {
                $args->setArgument($name, $value);
            }
        }

        foreach ($this->options as $name => $value) {
            // Filter command options
            if ($format->hasOption($name)) {
                $args->setOption($name, $value);
            }
        }

        return $args;
    }
private function createArgs ( ArgsFormat $ format , RawArgs $ rawArgs ) { $ args = new Args ( $ format , $ rawArgs ) ; foreach ( $ this -> arguments as $ name => $ value ) { // Filter command names if ( $ format -> hasArgument ( $ name ) ) { $ args -> setArgument ( $ name , $ value ) ; } } foreach ( $ this -> options as $ name => $ value ) { // Filter command options if ( $ format -> hasOption ( $ name ) ) { $ args -> setOption ( $ name , $ value ) ; } } return $ args ; }
Creates the arguments from the current class state.

@param ArgsFormat $format  The format.
@param RawArgs    $rawArgs The raw arguments.

@return Args The created console arguments.
Creates the arguments from the current class state .