Commit 167fba01 authored by Jon Skeet's avatar Jon Skeet

Turn lineBreak option to line_break

parent f31e34b1
...@@ -172,12 +172,12 @@ namespace Google.ProtocolBuffers.ProtoGen { ...@@ -172,12 +172,12 @@ namespace Google.ProtocolBuffers.ProtoGen {
if (TryCoerceType(value, fld, out obj, tmpReasons)) { if (TryCoerceType(value, fld, out obj, tmpReasons)) {
builder[fld] = obj; builder[fld] = obj;
} }
} else if (name == "lineBreak") { } else if (name == "line_break") {
string tmp; string tmp;
if (LineBreaks.TryGetValue(value, out tmp)) { if (LineBreaks.TryGetValue(value, out tmp)) {
LineBreak = tmp; LineBreak = tmp;
} else { } else {
tmpReasons.Add("Invalid value for 'lineBreak': " + value + "."); tmpReasons.Add("Invalid value for 'line_break': " + value + ".");
} }
} else if (!File.Exists(argument)) { } else if (!File.Exists(argument)) {
doHelp = true; doHelp = true;
...@@ -196,7 +196,7 @@ namespace Google.ProtocolBuffers.ProtoGen { ...@@ -196,7 +196,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
foreach (KeyValuePair<string, FieldDescriptor> field in fields) { foreach (KeyValuePair<string, FieldDescriptor> field in fields) {
tmpReasons.Add(String.Format("-{0}=[{1}]", field.Key, field.Value.FieldType)); tmpReasons.Add(String.Format("-{0}=[{1}]", field.Key, field.Value.FieldType));
} }
tmpReasons.Add("-lineBreak=[" + string.Join("|", new List<string>(LineBreaks.Keys).ToArray()) + "]"); tmpReasons.Add("-line_break=[" + string.Join("|", new List<string>(LineBreaks.Keys).ToArray()) + "]");
tmpReasons.Add("followed by one or more file paths."); tmpReasons.Add("followed by one or more file paths.");
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment