added usage

This commit is contained in:
amanbolat 2018-12-27 15:34:26 +08:00 committed by Dan Markham
parent c7302601d6
commit bbb4825a38
No known key found for this signature in database
GPG Key ID: 7994037517927D77
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ var (
// Usage is a replacement usage function for the flags package. // Usage is a replacement usage function for the flags package.
func Usage() { 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, "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 [directory]\n")
_, _ = fmt.Fprintf(os.Stderr, "\tstringer [flags] -type T files... # Must be a single package\n") _, _ = fmt.Fprintf(os.Stderr, "\tstringer [flags] -type T files... # Must be a single package\n")