protected function buildArguments(array $options = array())
    {
        $arguments = array();

        foreach ($options as $key => $value) {
            // Validate value and format it
            if ($value === false or is_int($key)) {
                continue;
            }

            $arguments[] = "--$key";

            if (is_array($value)) {
                $arguments = array_merge($arguments, $this->buildArrayArguments($value));
            } elseif ($value !== true) {
                $arguments[] = $value;
            }
        }

        return $arguments;
    }