Skip to content

Commit

Permalink
fix: Split transports on "+" instead of ";"
Browse files Browse the repository at this point in the history
(Corresponding documentation change will be needed in google-cloud-dotnet)
  • Loading branch information
jskeet committed Jun 13, 2022
1 parent 377ed2d commit 2c3acf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Google.Api.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Options
[Option(nameCommonResourcesConfig, Required = false, HelpText = "Common resources config path. JSON proto of type CommonResources.")]
public IEnumerable<string> CommonResourcesConfigs { get; private set; }

[Option(nameTransport, Required = false, HelpText = "Semi-colon-separated list of transports to generate for the main API.")]
[Option(nameTransport, Required = false, HelpText = "Plus-separated list of transports to generate for the main API.")]
public string Transport { get; private set; }

[Usage]
Expand All @@ -74,7 +74,7 @@ public class Options
Descriptor = Path.Combine("path", "to", "serialized", "FileDescriptorSet"),
Package = "your.service.proto_package",
Output = Path.Combine("path", "to", "output", "directory"),
Transport = "grpc;rest"
Transport = "grpc+rest"
}),
};
}
Expand Down Expand Up @@ -257,7 +257,7 @@ private static ApiTransports ParseTransports(string text)
{
return ApiTransports.Grpc;
}
var parts = text.Split(';');
var parts = text.Split('+');
ApiTransports ret = ApiTransports.None;
foreach (var part in parts)
{
Expand Down

0 comments on commit 2c3acf5

Please sign in to comment.