private bool ParseOption(string arg, CakeOptions options)
{
string name, value;
var separatorIndex = arg.IndexOfAny(new[] { '=' });
if (separatorIndex < 0)
{
name = arg.Substring(1);
value = string.Empty;
}
else
{
name = arg.Substring(1, separatorIndex - 1);
value = arg.Substring(separatorIndex + 1);
}
if (value.Length > 2)
{
if (value[0] == '\"' && value[value.Length - 1] == '\"')
{
value = value.Substring(1, value.Length - 2);
}
}
return ParseOption(name, value, options);
}