src/Cli/CommandLine.php
public function set($name, $value)
    {
        list($key, $extra) = $this->_splitOptionName($name);
        if ($extra && !isset($this->_options[$key])) {
            $this->option($key, ['group' => true, 'array' => true]);
        }
        return $this->_values[$key][$extra] = $value;
    }
public function set($name, $value)
    {
        list($key, $extra) = $this->_splitOptionName($name);
        if ($extra && !isset($this->_options[$key])) {
            $this->option($key, ['group' => true, 'array' => true]);
        }
        return $this->_values[$key][$extra] = $value;
    }
public function set ( $ name , $ value ) { list ( $ key , $ extra ) = $ this -> _splitOptionName ( $ name ) ; if ( $ extra && ! isset ( $ this -> _options [ $ key ] ) ) { $ this -> option ( $ key , [ 'group' => true , 'array' => true ] ) ; } return $ this -> _values [ $ key ] [ $ extra ] = $ value ; }
Sets the value of a specific option.

@param  string $name  The name of the option.
@param  mixed  $value The value of the option to set.
@return array         The setted value.
Sets the value of a specific option .