gopls: use the = form in flag parameter printing rather than a space

For #41860

Change-Id: I9956d06aa26df54f57a4fedb30b36fe39f19ee3e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/367840
Trust: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Ian Cottrell 2021-11-24 17:34:55 -05:00
parent 5ad7054788
commit dfda270eba
4 changed files with 25 additions and 25 deletions

View File

@ -167,7 +167,7 @@ func printFlagDefaults(s *flag.FlagSet) {
f := entry[0]
name, usage := flag.UnquoteUsage(f)
if len(name) > 0 {
b.WriteString(" ")
b.WriteString("=")
b.WriteString(name)
}
// Boolean flags of one ASCII letter are so common we

View File

@ -7,23 +7,23 @@ The server communicates using JSONRPC2 on stdin and stdout, and is intended to b
a child of an editor process.
server-flags:
-debug string
-debug=string
serve debug information on the supplied address
-listen string
-listen=string
address on which to listen for remote connections. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. Otherwise, TCP is used.
-listen.timeout duration
-listen.timeout=duration
when used with -listen, shut down the server when there are no connected clients for this duration
-logfile string
-logfile=string
filename to log to. if value is "auto", then logging to a default output file is enabled
-mode string
-mode=string
no effect
-port int
-port=int
port on which to run gopls for debugging purposes
-remote.debug string
-remote.debug=string
when used with -remote=auto, the -debug value used to start the daemon
-remote.listen.timeout duration
-remote.listen.timeout=duration
when used with -remote=auto, the -listen.timeout value used to start the daemon (default 1m0s)
-remote.logfile string
-remote.logfile=string
when used with -remote=auto, the -logfile value used to start the daemon
-rpc.trace
print the full rpc trace in lsp inspector format

View File

@ -39,33 +39,33 @@ Features
workspace_symbol search symbols in workspace
flags:
-debug string
-debug=string
serve debug information on the supplied address
-listen string
-listen=string
address on which to listen for remote connections. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. Otherwise, TCP is used.
-listen.timeout duration
-listen.timeout=duration
when used with -listen, shut down the server when there are no connected clients for this duration
-logfile string
-logfile=string
filename to log to. if value is "auto", then logging to a default output file is enabled
-mode string
-mode=string
no effect
-ocagent string
-ocagent=string
the address of the ocagent (e.g. http://localhost:55678), or off (default "off")
-port int
-port=int
port on which to run gopls for debugging purposes
-profile.cpu string
-profile.cpu=string
write CPU profile to this file
-profile.mem string
-profile.mem=string
write memory profile to this file
-profile.trace string
-profile.trace=string
write trace log to this file
-remote string
-remote=string
forward all commands to a remote lsp specified by this flag. With no special prefix, this is assumed to be a TCP address. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. If 'auto', or prefixed by 'auto;', the remote address is automatically resolved based on the executing environment.
-remote.debug string
-remote.debug=string
when used with -remote=auto, the -debug value used to start the daemon
-remote.listen.timeout duration
-remote.listen.timeout=duration
when used with -remote=auto, the -listen.timeout value used to start the daemon (default 1m0s)
-remote.logfile string
-remote.logfile=string
when used with -remote=auto, the -logfile value used to start the daemon
-rpc.trace
print the full rpc trace in lsp inspector format

View File

@ -8,6 +8,6 @@ Example:
$ gopls workspace_symbol -matcher fuzzy 'wsymbols'
workspace_symbol-flags:
-matcher string
-matcher=string
specifies the type of matcher: fuzzy, caseSensitive, or caseInsensitive.
The default is caseInsensitive.