summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.go b/parse.go
index d06b299..3a48880 100644
--- a/parse.go
+++ b/parse.go
@@ -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: