Skip to content

Commit 28b833c

Browse files
committed
gopls/internal/cmd: improve help texts
'gopls check' operates on multiple files, so I made the help text reflect that fact.
1 parent 0b45163 commit 28b833c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gopls/internal/cmd/check.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type check struct {
2121

2222
func (c *check) Name() string { return "check" }
2323
func (c *check) Parent() string { return c.app.Name() }
24-
func (c *check) Usage() string { return "<filename>" }
25-
func (c *check) ShortHelp() string { return "show diagnostic results for the specified file" }
24+
func (c *check) Usage() string { return "<files>" }
25+
func (c *check) ShortHelp() string { return "show diagnostic results for the specified files" }
2626
func (c *check) DetailedHelp(f *flag.FlagSet) {
2727
fmt.Fprint(f.Output(), `
2828
Example: show the diagnostic results of this file:

gopls/internal/cmd/usage/check.hlp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
show diagnostic results for the specified file
1+
show diagnostic results for the specified files
22

33
Usage:
4-
gopls [flags] check <filename>
4+
gopls [flags] check <files>
55

66
Example: show the diagnostic results of this file:
77

gopls/internal/cmd/usage/usage-v.hlp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Main
2020

2121
Features
2222
call_hierarchy display selected identifier's call hierarchy
23-
check show diagnostic results for the specified file
23+
check show diagnostic results for the specified files
2424
codelens List or execute code lenses for a file
2525
definition show declaration of selected identifier
2626
execute Execute a gopls custom LSP command

gopls/internal/cmd/usage/usage.hlp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Main
2020

2121
Features
2222
call_hierarchy display selected identifier's call hierarchy
23-
check show diagnostic results for the specified file
23+
check show diagnostic results for the specified files
2424
codelens List or execute code lenses for a file
2525
definition show declaration of selected identifier
2626
execute Execute a gopls custom LSP command

0 commit comments

Comments
 (0)