Browse Source

Turn lineBreak option to line_break

Jon Skeet 15 years ago
parent
commit
167fba0188
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/ProtoGen/GeneratorOptions.cs

+ 3 - 3
src/ProtoGen/GeneratorOptions.cs

@@ -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 {
         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 {