add usage information to Command struct

This commit is contained in:
Ryan Cavicchioni 2020-08-07 18:11:42 -05:00
parent 39d889ecb6
commit 4325398ca8
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -27,6 +27,7 @@ type Command struct {
Name string Name string
Func func(CmdArgs) (int, error) Func func(CmdArgs) (int, error)
Flags *flag.FlagSet Flags *flag.FlagSet
Use string
} }
var commandRegistry = make(map[string]Command) var commandRegistry = make(map[string]Command)