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