Use enumer not stringer in usage output

This commit is contained in:
David Terei 2018-08-08 15:58:26 -07:00
parent 6bcfe2edaa
commit 30e0eba7d0
1 changed files with 3 additions and 3 deletions

View File

@ -45,10 +45,10 @@ var (
// Usage is a replacement usage function for the flags package.
func Usage() {
fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
fmt.Fprintf(os.Stderr, "\tstringer [flags] -type T [directory]\n")
fmt.Fprintf(os.Stderr, "\tstringer [flags] -type T files... # Must be a single package\n")
fmt.Fprintf(os.Stderr, "\tenumer [flags] -type T [directory]\n")
fmt.Fprintf(os.Stderr, "\tenumer [flags] -type T files... # Must be a single package\n")
fmt.Fprintf(os.Stderr, "For more information, see:\n")
fmt.Fprintf(os.Stderr, "\thttp://godoc.org/golang.org/x/tools/cmd/stringer\n")
fmt.Fprintf(os.Stderr, "\thttps://github.com/alvaroloes/enumer\n")
fmt.Fprintf(os.Stderr, "Flags:\n")
flag.PrintDefaults()
}