From 0a1c3705ead9ee1186ec962b745675584222b084 Mon Sep 17 00:00:00 2001 From: Mikhail Katychev Date: Fri, 1 May 2020 17:01:07 -0500 Subject: [PATCH] alphabetised jsonError flag --- cmd/grpcurl/grpcurl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index 073dbd1..e1fd37b 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -95,6 +95,8 @@ var ( connectTimeout = flags.Float64("connect-timeout", 0, prettify(` The maximum time, in seconds, to wait for connection to be established. Defaults to 10 seconds.`)) + jsonError = flags.Bool("json-error", false, prettify(` + Emit error response as JSON.`)) keepaliveTime = flags.Float64("keepalive-time", 0, prettify(` If present, the maximum idle time in seconds, after which a keepalive probe is sent. If the connection remains idle and no keepalive response @@ -109,8 +111,6 @@ var ( will accept. If not specified, defaults to 4,194,304 (4 megabytes).`)) emitDefaults = flags.Bool("emit-defaults", false, prettify(` Emit default values for JSON-encoded responses.`)) - jsonError = flags.Bool("json-error", false, prettify(` - Emit error response as JSON.`)) protosetOut = flags.String("protoset-out", "", prettify(` The name of a file to be written that will contain a FileDescriptorSet proto. With the list and describe verbs, the listed or described