Skip to content

Commit 5bfee05

Browse files
committed
update cmd/go/internal UsageLine
1 parent 7ba8e79 commit 5bfee05

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cmd/go/alldocs.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/modcmd/edit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

2727
var cmdEdit = &base.Command{
28-
UsageLine: "go mod edit [editing flags] [go.mod]",
28+
UsageLine: "go mod edit [editing flags] [-fmt|-print|-json] [go.mod]",
2929
Short: "edit go.mod from tools or scripts",
3030
Long: `
3131
Edit provides a command-line interface for editing go.mod,

src/cmd/go/internal/modcmd/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
var cmdInit = &base.Command{
16-
UsageLine: "go mod init [module]",
16+
UsageLine: "go mod init [module-path]",
1717
Short: "initialize new module in current directory",
1818
Long: `
1919
Init initializes and writes a new go.mod file in the current directory, in

0 commit comments

Comments
 (0)