Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopls/internal/cmd: Improve help texts #493

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gopls/internal/cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<filename>" }
func (c *check) ShortHelp() string { return "show diagnostic results for the specified file" }
func (c *check) Usage() string { return "<files>" }
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:
Expand Down
4 changes: 2 additions & 2 deletions gopls/internal/cmd/usage/check.hlp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show diagnostic results for the specified file
show diagnostic results for the specified files

Usage:
gopls [flags] check <filename>
gopls [flags] check <files>

Example: show the diagnostic results of this file:

Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/cmd/usage/usage-v.hlp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/cmd/usage/usage.hlp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down