fix formatting

This commit is contained in:
Joseph Price 2024-01-29 11:16:00 -05:00
parent bd6368e766
commit 4bdf26e12a
1 changed files with 5 additions and 3 deletions

View File

@ -164,8 +164,10 @@ var (
permitted if they are both set to the same value, to increase backwards
compatibility with earlier releases that allowed both to be set).`))
reflection = optionalBoolFlag{val: true}
encoding = flags.String("encoding", "gzip", prettify(` The value to send for
the encoding header. Only 'gzip' and 'identity' are currently supported`)))
encoding = flags.String("encoding", "gzip", prettify(`
The value to send for the grpc-encoding header. Only 'gzip' and 'identity'
are currently supported`))
)
func init() {
flags.Var(&addlHeaders, "H", prettify(`
@ -358,7 +360,7 @@ func main() {
if *emitDefaults && *format != "json" {
warn("The -emit-defaults is only used when using json format.")
}
if *encoding != "gzip" && *encoding != "identity" {
if *encoding != "gzip" && *encoding != "identity" {
fail(nil, "The -encoding flag can only be used with the values 'gzip' or 'identity'")
}