From f6774dfa85a33e8b22bae4ad613acd53f6357b63 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 27 Apr 2024 19:31:27 +0200 Subject: [PATCH] gopls/internal/cmd: Improve help texts `gopls check` operates on multiple files, so I made the help text reflect that fact. --- gopls/internal/cmd/check.go | 4 ++-- gopls/internal/cmd/usage/check.hlp | 4 ++-- gopls/internal/cmd/usage/usage-v.hlp | 2 +- gopls/internal/cmd/usage/usage.hlp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gopls/internal/cmd/check.go b/gopls/internal/cmd/check.go index 7a0d19f85d8..60726a3f8ba 100644 --- a/gopls/internal/cmd/check.go +++ b/gopls/internal/cmd/check.go @@ -21,8 +21,8 @@ type check struct { func (c *check) Name() string { return "check" } func (c *check) Parent() string { return c.app.Name() } -func (c *check) Usage() string { return "" } -func (c *check) ShortHelp() string { return "show diagnostic results for the specified file" } +func (c *check) Usage() string { return "" } +func (c *check) ShortHelp() string { return "show diagnostic results for the specified files" } func (c *check) DetailedHelp(f *flag.FlagSet) { fmt.Fprint(f.Output(), ` Example: show the diagnostic results of this file: diff --git a/gopls/internal/cmd/usage/check.hlp b/gopls/internal/cmd/usage/check.hlp index eda1a25a191..8cdf504a013 100644 --- a/gopls/internal/cmd/usage/check.hlp +++ b/gopls/internal/cmd/usage/check.hlp @@ -1,7 +1,7 @@ -show diagnostic results for the specified file +show diagnostic results for the specified files Usage: - gopls [flags] check + gopls [flags] check Example: show the diagnostic results of this file: diff --git a/gopls/internal/cmd/usage/usage-v.hlp b/gopls/internal/cmd/usage/usage-v.hlp index 46c3f57b02d..2e49e6d34e4 100644 --- a/gopls/internal/cmd/usage/usage-v.hlp +++ b/gopls/internal/cmd/usage/usage-v.hlp @@ -20,7 +20,7 @@ Main Features call_hierarchy display selected identifier's call hierarchy - check show diagnostic results for the specified file + check show diagnostic results for the specified files codelens List or execute code lenses for a file definition show declaration of selected identifier execute Execute a gopls custom LSP command diff --git a/gopls/internal/cmd/usage/usage.hlp b/gopls/internal/cmd/usage/usage.hlp index e791bbc0d55..6540aa6e2f4 100644 --- a/gopls/internal/cmd/usage/usage.hlp +++ b/gopls/internal/cmd/usage/usage.hlp @@ -20,7 +20,7 @@ Main Features call_hierarchy display selected identifier's call hierarchy - check show diagnostic results for the specified file + check show diagnostic results for the specified files codelens List or execute code lenses for a file definition show declaration of selected identifier execute Execute a gopls custom LSP command