private function generateOptions(TaskDescriptionInterface $description)
    {
        $cmdPart = '';
        $options = $description->getOptions();
        if (!is_array($options)) {
            return $cmdPart;
        }
        foreach ($options as $optionName => $optionValue) {
            //validate the option name
            if (!$this->isValidOptionName($optionName)) {
                continue;
            }
            if (is_bool($optionValue) && $optionValue) {
                $cmdPart .= ' --' . $optionName;
            } elseif (is_string($optionValue)|| is_integer($optionValue)) {
                $cmdPart .= ' --' . $optionName . '=' . escapeshellarg($optionValue);
            }
        }
        return $cmdPart;

    }