protected function resolveCommandOptions(array $options)
    {
        $resolver = new OptionsResolver();

        $resolver
            ->setDefined([
                'description',
                'usage',
                'aliases',
            ])
            ->setDefaults([
                'description' => 'No description provided.',
                'usage'       => '',
                'aliases'     => [],
            ]);

        $options = $resolver->resolve($options);

        if (! empty($options['usage'])) {
            $options['usage'] .= ' ';
        }

        return $options;
    }
protected function resolveCommandOptions(array $options)
    {
        $resolver = new OptionsResolver();

        $resolver
            ->setDefined([
                'description',
                'usage',
                'aliases',
            ])
            ->setDefaults([
                'description' => 'No description provided.',
                'usage'       => '',
                'aliases'     => [],
            ]);

        $options = $resolver->resolve($options);

        if (! empty($options['usage'])) {
            $options['usage'] .= ' ';
        }

        return $options;
    }
protected function resolveCommandOptions ( array $ options ) { $ resolver = new OptionsResolver ( ) ; $ resolver -> setDefined ( [ 'description' , 'usage' , 'aliases' , ] ) -> setDefaults ( [ 'description' => 'No description provided.' , 'usage' => '' , 'aliases' => [ ] , ] ) ; $ options = $ resolver -> resolve ( $ options ) ; if ( ! empty ( $ options [ 'usage' ] ) ) { $ options [ 'usage' ] .= ' ' ; } return $ options ; }
Resolves command options.

@param array $options Array of options.

@return array Options.
Resolves command options .