Instance Method (Default implementation)swift-protobuf 1.29.0SwiftProtobufPluginLibrary
printHelp
CodeGenerator.swift:185func printHelp()
func printHelp()
s26SwiftProtobufPluginLibrary13CodeGeneratorPAAE9printHelpyyF
What are these?1VAVQ
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
protocol CodeGenerator
A protocol that generator should conform to then get easy support for being a protocol buffer compiler pluign.
func printHelp()
Will be called for -h
or --help
, should print()
out whatever is desired; there is a default implementation that uses the above info when provided.
static func main()
Runs as a protocol buffer compiler plugin; reading the generation request off stdin and sending the response on stdout.
var copyrightLine: String? { get }
var customOptionExtensions: [any AnyMessageExtension] { get }
var projectURL: String? { get }
var supportedEditionRange: ClosedRange<Google_Protobuf_Edition> { get }
var version: String? { get }
func main(_ args: [String]?)
Runs as a protocol buffer compiler plugin based on the given arguments or falls back to CommandLine.arguments
.