From bbb4825a3833efe793fd3338506e9b223a5806b4 Mon Sep 17 00:00:00 2001 From: amanbolat Date: Thu, 27 Dec 2018 15:34:26 +0800 Subject: [PATCH] added usage --- stringer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/stringer.go b/stringer.go index bffcb19..3ef765d 100644 --- a/stringer.go +++ b/stringer.go @@ -43,6 +43,7 @@ var ( // Usage is a replacement usage function for the flags package. func Usage() { + _, _ = fmt.Fprintf(os.Stderr, "Enumer is a tool to generate Go code that adds useful methods to Go enums (constants with a specific type).") _, _ = 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")