src/includes/classes/Core/CliOpts.php
public function add(array $specs)
    {
        foreach ($specs as $_spec => $_data) {
            if ($_spec && is_string($_spec) && !empty($_data['desc'])) {
                $_Option = $this->OptionCollection->add($_spec, $_data['desc']);

                if (!empty($_data['type'])) {
                    $_Option->isa($_data['type']);
                }
                if (isset($_data['default'])) {
                    $_Option->defaultValue($_data['default']);
                }
                if (isset($_data['valid_values'])) {
                    $_Option->validValues($_data['valid_values']);
                }
            }
        } // unset($_spec, $_data, $_Option);
    }
public function add(array $specs)
    {
        foreach ($specs as $_spec => $_data) {
            if ($_spec && is_string($_spec) && !empty($_data['desc'])) {
                $_Option = $this->OptionCollection->add($_spec, $_data['desc']);

                if (!empty($_data['type'])) {
                    $_Option->isa($_data['type']);
                }
                if (isset($_data['default'])) {
                    $_Option->defaultValue($_data['default']);
                }
                if (isset($_data['valid_values'])) {
                    $_Option->validValues($_data['valid_values']);
                }
            }
        } // unset($_spec, $_data, $_Option);
    }
Get options.

@since 150424 Initial release.

@param array $specs An array of option specs.

@link https://github.com/c9s/GetOptionKit