public static function interleaved(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $newArguments = [];
            foreach ($arguments as $key => $value) {
                $newKey = "{$prefix}{$key}";
                $newArguments[$newKey] = $value;
            }
            $arguments = [$newArguments];

            $command->setRawArguments($arguments);
        }
    }
public static function interleaved(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $newArguments = [];
            foreach ($arguments as $key => $value) {
                $newKey = "{$prefix}{$key}";
                $newArguments[$newKey] = $value;
            }
            $arguments = [$newArguments];

            $command->setRawArguments($arguments);
        }
    }
public static function interleaved ( CommandInterface $ command , $ prefix ) { if ( $ arguments = $ command -> getArguments ( ) ) { $ newArguments = [ ] ; foreach ( $ arguments as $ key => $ value ) { $ newKey = "{$prefix}{$key}" ; $ newArguments [ $ newKey ] = $ value ; } $ arguments = [ $ newArguments ] ; $ 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 .