private static string FormatOption(OptionSpecification spec, object value, UnParserSettings settings) { return(new StringBuilder() .Append(spec.FormatName(settings)) .AppendWhen(spec.TargetType != TargetType.Switch, FormatValue(spec, value)) .ToString()); }