Register support options.

@param array $options

@return void
197789
protected function register(array $options)
    {
        foreach ($options as $option => $argument) {
            if (is_bool($argument)) {
                add_theme_support($option);

                continue;
            }

            add_theme_support($option, $argument);
        }
    }
1133717
protected function setOptions($options)
    {
        if (!$options instanceof OptionsInterface) {
            $options = is_array($options) ? $options : [];
            $options = new Options($options);
        }

        $this->options = $options;
    }
1184674
protected function setDefaultOptions(array $options=[])
	{
		$this->defaultOptions = [
			'foreign_key' => $this->model->getForeignKey(),
			'primary_key' => $this->model->getKeyName()
		];
	}
1191519
protected function handleOptions(&$options) {
		if (is_array($options) && isset($options[self::PARAM_PROFILER])) {
			$this->setProfilerStatus($options[self::PARAM_PROFILER]);
			
			unset($options[self::PARAM_PROFILER]);
		}
	}
472708
public function setOptions(array $options)
    {
        foreach ($options as $k => $v) {
            $this->setOption($k, $v);
        }
    }
250087
private function applyOptions(array $options)
    {
        foreach ($options as $option => $value) {
            if (isset($this->$option) && isset($value)) {
                $this->$option = $value;
            }
        }
    }
1186496
public function setOptions(array $options)
    {
        $availableOptions = [
            'default',
            'group',
            'key',
            'message',
            'messages',
            'rules'
        ];

        foreach ($availableOptions as $option) {
            if (isset($options[$option])) {
                $this->$option = $options[$option];
            }
        }
    }
1111498
public function setOptions(array $options)
    {
        foreach ($options as $option => $value) {
            $this->setOption($option, $value);
        }

        return $this;
    }
1103573
protected function setup(Options $options)
    {
        $options->setHelp('This example sets up additional subcommands using their own options');
        $options->registerOption('longflag', 'This is a global flag that applies to all subcommands', 'l');

        $options->registerCommand('foo', 'The foo command');
        $options->registerCommand('bar', 'The bar command');

        $options->registerOption('someflag', 'This is a flag only valid for the foo command', 's', false, 'foo');
        $options->registerArgument('file', 'This argument is only required for the foo command', true, 'foo');

        $options->registerOption('load', 'Another flag only for the bar command, requiring an argument', 'l', 'input',
            'bar');

    }
1168603
public function addOptions(array $options)
    {
        $existingOptions = $this->getOptions();
        $newOptions = empty($existingOptions) ? $options : array_merge((array)$existingOptions, $options);
        $this->setOptions($newOptions);
        return $this;
    }
286036
public function addOptions(array $options)
    {
        foreach ($options as $name => $option) {
            $this->options[$name] = $option;
        }
        $this->compiled = null;

        return $this;
    }
205457
public function setOptions(array $options)
    {
        $this->options = [];

        foreach ($options as $k => $v) {
            $this->addOption($k, (array)$v);
        }

        return $this;
    }
224328
protected function setOptions(array $options)
    {
        if (isset($options['label'])) {
            $this->label = $options['label'];
        }

        if (isset($options['message'])) {
            $this->message = $options['message'];
        }

        if (isset($options['returnAddress'])) {
            $this->returnAddress = $options['returnAddress'];
        }
    }
763672
protected function setup(Options $options)
    {
        $options->setHelp('This is a simple example, not using any subcommands');
        $options->registerOption('longflag', 'A flag that can also be set with a short option', 'l');
        $options->registerOption('file', 'This option expects an argument.', 'f', 'filename');
        $options->registerArgument('argument', 'Arguments can be required or optional. This one is optional', false);
    }
414801
private function resolveConfiguration(array $options = []): void
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);
        $this->userAgentPrefix = $options[static::CONFIG_USER_AGENT_PREFIX];
        $this->httpClientBuilder = $options[static::CONFIG_HTTP_CLIENT_BUILDER] ?: new Builder();
        $this->uriFactory = $options[static::CONFIG_URI_FACTORY] ?: UriFactoryDiscovery::find();
        $this->requestFactory = $options[static::CONFIG_REQUEST_FACTORY] ?: MessageFactoryDiscovery::find();
        $this->journal = $options[static::CONFIG_JOURNAL] ?: new Journal();
        $this->errorFormatter = $options[static::CONFIG_ERROR_FORMATTER];
        $this->retryPluginConfig = $options[static::CONFIG_RETRY_PLUGIN_CONFIG];
    }
1356018
public function setOptions(array $options = null): void
    {
        // store options by default
        $this->options = (array)$options;

        // apply options
        foreach ($this->options as $key => $value) {
            $this->setOption($key, $value);
        }
    }
341066
protected function setOptions($options)
    {
        foreach (array('directory', 'path', 'ignore', 'allowed_errors') as $key) {
            if (array_key_exists($key, $options)) {
                $this->{$key} = $options[$key];
            }
        }
    }