src/Command/Processor/KeyPrefixProcessor.php
public static function interleaved(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $length = count($arguments);

            for ($i = 0; $i < $length; $i += 2) {
                $arguments[$i] = "$prefix{$arguments[$i]}";
            }

            $command->setRawArguments($arguments);
        }
    }
public static function interleaved(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $length = count($arguments);

            for ($i = 0; $i < $length; $i += 2) {
                $arguments[$i] = "$prefix{$arguments[$i]}";
            }

            $command->setRawArguments($arguments);
        }
    }
public static function interleaved ( CommandInterface $ command , $ prefix ) { if ( $ arguments = $ command -> getArguments ( ) ) { $ length = count ( $ arguments ) ; for ( $ i = 0 ; $ i < $ length ; $ i += 2 ) { $ arguments [ $ i ] = "$prefix{$arguments[$i]}" ; } $ command -> setRawArguments ( $ arguments ) ; } }
Applies the specified prefix only to even arguments in the list.

@param CommandInterface $command Command instance.
@param string           $prefix  Prefix string.
Applies the specified prefix only to even arguments in the list .