mirror of
https://github.com/golang/go
synced 2024-09-29 09:24:28 -06:00
fixed proposed command issue on the help error message
This commit is contained in:
parent
e8c7e639ea
commit
9631abf1d0
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user