public function prepare($command, array $arguments = array())
    {
        $commandline = $command;

        foreach ($arguments as $option => $value) {
            if (is_bool($value)) {
                if ($value === true) {
                    $commandline .= ' ' . $option;
                }
            } else {
                $seperator = ' ';
                if (!is_integer($option)) {
                    $commandline .= ' ' . $option;
                    if (substr($option, -1, 1) == '=') {
                        $seperator = '';
                    }
                }
                $commandline .= $seperator . ProcessUtils::escapeArgument($value);
            }
        }

        return $commandline;
    }
public function prepare($command, array $arguments = array())
    {
        $commandline = $command;

        foreach ($arguments as $option => $value) {
            if (is_bool($value)) {
                if ($value === true) {
                    $commandline .= ' ' . $option;
                }
            } else {
                $seperator = ' ';
                if (!is_integer($option)) {
                    $commandline .= ' ' . $option;
                    if (substr($option, -1, 1) == '=') {
                        $seperator = '';
                    }
                }
                $commandline .= $seperator . ProcessUtils::escapeArgument($value);
            }
        }

        return $commandline;
    }
public function prepare ( $ command , array $ arguments = array ( ) ) { $ commandline = $ command ; foreach ( $ arguments as $ option => $ value ) { if ( is_bool ( $ value ) ) { if ( $ value === true ) { $ commandline .= ' ' . $ option ; } } else { $ seperator = ' ' ; if ( ! is_integer ( $ option ) ) { $ commandline .= ' ' . $ option ; if ( substr ( $ option , - 1 , 1 ) == '=' ) { $ seperator = '' ; } } $ commandline .= $ seperator . ProcessUtils :: escapeArgument ( $ value ) ; } } return $ commandline ; }
Prepares a commandline

@param  string $command
@param  array  $arguments
@return string
Prepares a commandline