add usage information to Command struct
This commit is contained in:
parent
39d889ecb6
commit
4325398ca8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user