mirror of https://github.com/dmarkham/enumer.git
added usage
This commit is contained in:
parent
c7302601d6
commit
bbb4825a38
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue