public function parse()
    {
        $input = new ArgvInput($this->arguments);
        $parsed = [];

        foreach ($this->search as $option) {
            if ($input->hasParameterOption($option)) {
                $name = ltrim($option, '-');
                $parsed[$name] = $input->getParameterOption($option);
            }
        }

        return $parsed;
    }
public function parse()
    {
        $input = new ArgvInput($this->arguments);
        $parsed = [];

        foreach ($this->search as $option) {
            if ($input->hasParameterOption($option)) {
                $name = ltrim($option, '-');
                $parsed[$name] = $input->getParameterOption($option);
            }
        }

        return $parsed;
    }
public function parse ( ) { $ input = new ArgvInput ( $ this -> arguments ) ; $ parsed = [ ] ; foreach ( $ this -> search as $ option ) { if ( $ input -> hasParameterOption ( $ option ) ) { $ name = ltrim ( $ option , '-' ) ; $ parsed [ $ name ] = $ input -> getParameterOption ( $ option ) ; } } return $ parsed ; }
Parse arguments to find any options specified
in the search array

@return array $parsed
Parse arguments to find any options specified in the search array