GrumPHP\Collection\ProcessArgumentsCollection::addArgumentArrayWithSeparatedValue PHP Method

addArgumentArrayWithSeparatedValue() public method

Some CLI tools prefer to split the argument and the value.
public addArgumentArrayWithSeparatedValue ( $argument, array $values )
$argument
$values array
    public function addArgumentArrayWithSeparatedValue($argument, array $values)
    {
        foreach ($values as $value) {
            $this->add(sprintf($argument, $value));
            $this->add($value);
        }
    }