Required Instance Propertyswift-protobuf 1.28.1SwiftProtobufPluginLibrary
parameter
The raw value from the compiler as a single string, if multiple values were passed, they are joined into a single string. See parsedPairs
as that is likely a better option for consuming the parameters.
var parameter: String { get }
Other requirements
Instance members
var parsedPairs: [(key: String, value: String)]
The protocol buffer compiler will combine multiple
--[LANG]_opt
directives into a “single” parameter by joining them with commas. This vends the parameter split back back out into the individual arguments: i.e., “foo=bar,baz,mumble=blah” becomes: [ (key: “foo”, value: “bar”), (key: “baz”, value: “”), (key: “mumble”, value: “blah”) ]