Skip to content

Commit ee90faa

Browse files
committed
Improve help for -i flag
1 parent f33d08f commit ee90faa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ func _main() error {
256256
packages: map[string]string{},
257257
onlySemVer: true,
258258
}
259-
flag.Var(&imports, "i", "* import package: [alias=]import-path\n* switch to Go module mode and import package: [alias=]import-path@version")
259+
flag.Var(&imports, "i", ``+
260+
"* import package local package from GOPATH: [alias=]import-path\n"+
261+
"* import package in Go module mode: [alias=]import-path@version\n"+
262+
"Once a version is mentioned, Go module mode is enabled globally."
263+
)
260264

261265
var goimports string
262266
flag.StringVar(&goimports, "goimports", "goimports", "goimports tool name, to use an alternate tool or just disable it.")

0 commit comments

Comments
 (0)