Support detailed help.

Any command/arg implementing the HelpProvider interface will be used to
provide arbitrarily detailed help.
This commit is contained in:
Alec Thomas
2018-08-14 14:41:27 +10:00
parent 27d2a08e53
commit f0bd1294a7
4 changed files with 31 additions and 5 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ type Node struct {
Type NodeType
Parent *Node
Name string
Help string
Help string // Short help displayed in summaries.
Detail string // Detailed help displayed when describing command/arg alone.
Hidden bool
Flags []*Flag
Positional []*Positional