protected function assemble()
    {
        $assembled = $this->command;
        foreach ($this->arguments as $key => $value) {
            if (is_int($key)
                && false === strpos((string) $key, '-')) {
                $assembled .= ' '.escapeshellarg($value);
                continue;
            }
            $assembled .= ' '.escapeshellarg($key);
            $assembled .= ' '.escapeshellarg($value);
        }

        return $assembled;
    }