public function mountCommandOptions() { $options = ''; foreach ($this->commandOptions as $key => $value) { if (is_bool($value)) { $value = $value ? 'true' : 'false'; } $options .= '--' . $key . '=' . $value . ' '; } return rtrim($options, ' '); }