diff options
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -59,6 +59,7 @@ type spec struct { // command represents a named subcommand, or the top-level command type command struct { name string + help string dest path specs []*spec subcommands []*command @@ -296,6 +297,8 @@ func cmdFromStruct(name string, dest path, t reflect.Type) (*command, error) { return false } + subcmd.help = field.Tag.Get("help") + cmd.subcommands = append(cmd.subcommands, subcmd) isSubcommand = true default: |
