From 4bdf26e12a23cb23775d086a722dd8c44aa54ee2 Mon Sep 17 00:00:00 2001 From: Joseph Price Date: Mon, 29 Jan 2024 11:16:00 -0500 Subject: [PATCH] fix formatting --- cmd/grpcurl/grpcurl.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index d3d1884..1f6c918 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -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'") }