Skip to content

Commit 68bf78a

Browse files
ajanthanstamblerre
authored andcommitted
internal/lsp/cmd: improve help output of gopls subcommands
This cleans up empty flag documentation of gopls subcommands with no flags. Fixes #43447 Change-Id: I4d6f689062af24db4e6c652ec9ce0bc1a4a42a8c GitHub-Last-Rev: d917bdb GitHub-Pull-Request: #269 Reviewed-on: https://go-review.googlesource.com/c/tools/+/284215 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Rebecca Stambler <rstambler@golang.org> Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org>
1 parent 4922717 commit 68bf78a

File tree

7 files changed

+0
-14
lines changed

7 files changed

+0
-14
lines changed

internal/lsp/cmd/call_hierarchy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Example:
3030
$ # 1-indexed location (:line:column or :#offset) of the target identifier
3131
$ gopls call_hierarchy helper/helper.go:8:6
3232
$ gopls call_hierarchy helper/helper.go:#53
33-
34-
gopls call_hierarchy flags are:
3533
`)
3634
f.PrintDefaults()
3735
}

internal/lsp/cmd/check.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ func (c *check) DetailedHelp(f *flag.FlagSet) {
2626
Example: show the diagnostic results of this file:
2727
2828
$ gopls check internal/lsp/cmd/check.go
29-
30-
gopls check flags are:
3129
`)
3230
f.PrintDefaults()
3331
}

internal/lsp/cmd/highlight.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Example:
3030
$ # 1-indexed location (:line:column or :#offset) of the target identifier
3131
$ gopls highlight helper/helper.go:8:6
3232
$ gopls highlight helper/helper.go:#53
33-
34-
gopls highlight flags are:
3533
`)
3634
f.PrintDefaults()
3735
}

internal/lsp/cmd/implementation.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Example:
3030
$ # 1-indexed location (:line:column or :#offset) of the target identifier
3131
$ gopls implementation helper/helper.go:8:6
3232
$ gopls implementation helper/helper.go:#53
33-
34-
gopls implementation flags are:
3533
`)
3634
f.PrintDefaults()
3735
}

internal/lsp/cmd/prepare_rename.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Example:
3030
$ # 1-indexed location (:line:column or :#offset) of the target identifier
3131
$ gopls prepare_rename helper/helper.go:8:6
3232
$ gopls prepare_rename helper/helper.go:#53
33-
34-
gopls prepare_rename flags are:
3533
`)
3634
f.PrintDefaults()
3735
}

internal/lsp/cmd/semantictokens.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ func (c *semtok) DetailedHelp(f *flag.FlagSet) {
6767
Example: show the semantic tokens for this file:
6868
6969
$ gopls semtok internal/lsp/cmd/semtok.go
70-
71-
gopls semtok flags are:
7270
`)
7371
f.PrintDefaults()
7472
}

internal/lsp/cmd/signature.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ Example:
2929
$ # 1-indexed location (:line:column or :#offset) of the target identifier
3030
$ gopls signature helper/helper.go:8:6
3131
$ gopls signature helper/helper.go:#53
32-
33-
gopls signature flags are:
3432
`)
3533
f.PrintDefaults()
3634
}

0 commit comments

Comments
 (0)