]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/go/alldocs.go
[dev.cmdgo] all: merge master (9eee0ed) into dev.cmdgo
[gostls13.git] / src / cmd / go / alldocs.go
index fb99dccb46e4cc1080f5de8dba512b6b807a8041..af1ee396841f87ba6277bf49750f38e02b905b32 100644 (file)
 //
 // Usage:
 //
-//     go mod edit [editing flags] [go.mod]
+//     go mod edit [editing flags] [-fmt|-print|-json] [go.mod]
 //
 // Edit provides a command-line interface for editing go.mod,
 // for use primarily by tools or scripts. It reads only go.mod;
 // and one of its requirements. Each module is identified as a string of the form
 // path@version, except for the main module, which has no @version suffix.
 //
-// The -go flag causes graph to report the module graph as loaded by by the
+// The -go flag causes graph to report the module graph as loaded by the
 // given Go version, instead of the version indicated by the 'go' directive
 // in the go.mod file.
 //
 //
 // Usage:
 //
-//     go mod init [module]
+//     go mod init [module-path]
 //
 // Init initializes and writes a new go.mod file in the current directory, in
 // effect creating a new module rooted at the current directory. The go.mod file