kahlan\cli\CommandLine::add PHP Method

add() public method

Adds a value to a specific option (or set if it's not an array).
public add ( string $name, mixed $value ) : array
$name string The name of the option.
$value mixed The value of the option to set.
return array The setted value.
    public function add($name, $value)
    {
        $config = $this->option($name);
        list($key, $extra) = $this->_splitOptionName($name);
        if ($config['array']) {
            $this->_values[$key][$extra][] = $value;
        } else {
            $this->set($name, $value);
        }
        return $this->_values[$key][$extra];
    }