Enable options.
@param options Options to enable.
12015
@SafeVarargs
  public final void enable(Option... options) {
    for (Option o : options) {
      optionSet.add(o);
    }
  }
1094589
private void loadOptions(final P6LoadableOptions options) {
		// make sure to load defaults first
		options.load(options.getDefaults());

		// load the rest in the right order then
		for (P6OptionsSource optionsSource : optionsSources) {
			Map<String, String> toLoad = optionsSource.getOptions();
			if (null != toLoad) {
				options.load(toLoad);
			}
		}

		// register to all the props then
		allOptions.put(options.getClass(), options);
	}
197929
private void applyViewOptions(OptionsParam options) {
		if (getView() == null) {
			return;
		}

		breakPanel.setButtonsLocation(options.getViewParam().getBrkPanelViewOption());
		breakPanel.setButtonMode(options.getParamSet(BreakpointsParam.class).getButtonMode());
	}
279055
public function setOptions($options)
    {
        $this->package->setParsedOptions($options);
        $this->inputCollector->setOptions($options);
    }
72301
def options(self, options):
        
        if self.is_optionhandler:
            javabridge.call(self.jobject, "setOptions", "([Ljava/lang/String;)V", typeconv.string_list_to_array(options))
1245725
public static void
set(String option) {
	if (table == null)
		table = new HashMap();
	table.put(option.toLowerCase(), "true");
}
140351
public void options(String panel) {
	    OptionsDialog dialog = view.getOptionsDialog(Constant.messages.getString("options.dialog.title"));
	    dialog.initParam(model.getOptionsParam());

	    int result = dialog.showDialog(false, panel);
		if (result == JOptionPane.OK_OPTION) {
		    try {
                model.getOptionsParam().getConfig().save();
            } catch (ConfigurationException e) {
                logger.error(e.getMessage(), e);
                view.showWarningDialog(Constant.messages.getString("menu.tools.options.errorSavingOptions"));
                return;
            }
		    // ZAP: Notify all OptionsChangedListener.
		    control.getExtensionLoader().optionsChangedAllPlugin(model.getOptionsParam());
		    
		    view.getMainFrame().applyViewOptions();

		    control.getProxy().stopServer();
		    control.getProxy().startServer();
		}
	}
931619
protected function applyOptions(array $options): void
    {
        $this->logger->info('Applying options...', ['options' => $options]);

        $this->options = array_merge($this->options, $options);

        $this->logger->debug('Options applied and merged with defaults', ['options' => $this->options]);
    }
163817
public function addOptions(array $options)
    {
        $this->options = array_merge($this->options, $options);

        $this->getDefinitionLoader()->setOptions($options);
    }
688103
def options(self, *args, **kwargs):
        
        self.set_header('Allow', ', '.join(self.ALLOW))
        self.set_status(204)
        self.finish()
1227067
public void modifyOptions(Map<String, Object> options) throws ProvisioningApiException {
        try {

            OptionsPostResponseStatusSuccess resp = optionsApi.optionsPost(new OptionsPost().data(new OptionsPostData().options(options)));

            if (!resp.getStatus().getCode().equals(0)) {
                throw new ProvisioningApiException("Error modifying options. Code: " + resp.getStatus().getCode());
            }

        } catch (ApiException e) {
            throw new ProvisioningApiException("Error modifying options", e);
        }
    }
1243160
public Configuration withOptions(Options options) {
        return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener);
    }
601629
protected void setSelectOptions(List<CmsSelectWidgetOption> selectOptions) {

        m_selectOptions = new ArrayList<CmsSelectWidgetOption>();
        m_selectOptions.addAll(selectOptions);
    }
212924
public function setOptions(array $options) : void
    {
        self::$options = array_unique(array_merge(self::$options, $options));
    }
641106
public synchronized final void activateOptions() {
		this.deactivateOptions();
		super.activateOptions();
		if (getFilterEmptyMessages()) {
			addFilter(new EmptyMessageFilter());
		}

		// rollables
		this.setFileRollable(new CompositeRoller(this, this.getProperties()));
		// scavenger
		LogFileScavenger fileScavenger = this.getLogFileScavenger();
		if (fileScavenger == null) {
			fileScavenger = this.initLogFileScavenger(new DefaultLogFileScavenger());
		}
		fileScavenger.begin();
		// compressor
		final LogFileCompressor logFileCompressor = new LogFileCompressor(this, this.getProperties());
		this.setLogFileCompressor(logFileCompressor);
		this.getFileRollable().addFileRollEventListener(logFileCompressor);
		logFileCompressor.begin();
		// guest listener
		this.registerGuestFileRollEventListener();
		// roll enforcer
		final TimeBasedRollEnforcer logRollEnforcer = new TimeBasedRollEnforcer(this, this.getProperties());
		this.setLogRollEnforcer(logRollEnforcer);
		logRollEnforcer.begin();
		// roll on start-up
		if (this.getProperties().shouldRollOnActivation()) {
			synchronized (this) {
				this.rollFile(new StartupFileRollEvent());
			}
		}
	}
405331
function setOptions(options) {
  exports.options = options;
  home.options = options;
  renderMarkdown.options = options;
  renderGithubMarkdown.options = options;
}
61684
public void setOptions(String[] options) throws Exception {
    String		tmpStr;
    String[]		tmpOptions;
    Vector<String>	search;
    int			i;
    AbstractParameter[]	params;

    search = new Vector<String>();
    do {
      tmpStr = Utils.getOption("search", options);
      if (tmpStr.length() > 0)
	search.add(tmpStr);
    }
    while (tmpStr.length() > 0);
    if (search.size() == 0)
      throw new IllegalArgumentException("No search parameters provided!");
    params = new AbstractParameter[search.size()];
    for (i = 0; i < search.size(); i++) {
      tmpOptions    = Utils.splitOptions(search.get(i));
      tmpStr        = tmpOptions[0];
      tmpOptions[0] = "";
      params[i]     = (AbstractParameter) Utils.forName(AbstractParameter.class, tmpStr, tmpOptions);
    }
    setParameters(params);
  }