mirror of
https://github.com/golang/go
synced 2024-11-25 08:47:56 -07:00
goinstall: better usage message
Fixes #2185. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4967046
This commit is contained in:
parent
ea23ba3e2d
commit
3fa7226de7
@ -20,8 +20,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
fmt.Fprint(os.Stderr, "usage: goinstall importpath...\n")
|
fmt.Fprintln(os.Stderr, "usage: goinstall [flags] importpath...")
|
||||||
fmt.Fprintf(os.Stderr, "\tgoinstall -a\n")
|
fmt.Fprintln(os.Stderr, " goinstall [flags] -a")
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user