From f176d2008da5b29f82d0b6a78ae0a94d5d9e8bcf Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 16 May 2013 05:54:21 -0400 Subject: [PATCH] initialize --- gpm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpm.go b/gpm.go index 88fb0b826..066795dda 100644 --- a/gpm.go +++ b/gpm.go @@ -142,11 +142,11 @@ func main() { // in the middle of directory elements, such as /tmp/git-1.8.2~rc3 // or C:\PROGRA~1. Only ~ as a path prefix has meaning to the shell. if strings.HasPrefix(p, "~") { - fmt.Fprintf(os.Stderr, "go: GOPATH entry cannot start with shell metacharacter '~': %q\n", p) + fmt.Fprintf(os.Stderr, "gpm: GOPATH entry cannot start with shell metacharacter '~': %q\n", p) os.Exit(2) } if build.IsLocalImport(p) { - fmt.Fprintf(os.Stderr, "go: GOPATH entry is relative; must be absolute path: %q.\nRun 'go help gopath' for usage.\n", p) + fmt.Fprintf(os.Stderr, "gpm: GOPATH entry is relative; must be absolute path: %q.\nRun 'gpm help gopath' for usage.\n", p) os.Exit(2) } } @@ -167,13 +167,13 @@ func main() { } } - fmt.Fprintf(os.Stderr, "go: unknown subcommand %q\nRun 'go help' for usage.\n", args[0]) + fmt.Fprintf(os.Stderr, "gpm: unknown subcommand %q\nRun 'gpm help' for usage.\n", args[0]) setExitStatus(2) exit() } var usageTemplate string -var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}} +var helpTemplate = `{{if .Runnable}}usage: gpm {{.UsageLine}} {{end}}{{.Long | trim}} `