1
0
mirror of https://github.com/golang/go synced 2024-09-29 07:24:32 -06:00

fixed proposed command issue on the help error message

This commit is contained in:
Jordi Martin 2019-07-23 15:55:17 +02:00
parent e8c7e639ea
commit 9631abf1d0

View File

@ -63,7 +63,7 @@ Args:
// helpSuccess is the help command using as many args as possible that would succeed.
helpSuccess := "go help"
if i > 0 {
helpSuccess = " " + strings.Join(args[:i], " ")
helpSuccess += " " + strings.Join(args[:i], " ")
}
fmt.Fprintf(os.Stderr, "go help %s: unknown help topic. Run '%s'.\n", strings.Join(args, " "), helpSuccess)
base.SetExitStatus(2) // failed at 'go help cmd'